I’m rewriting a storage system and ran into an interesting problem. There was an error where I did not change anything. Literally, a minute ago it started and even loaded values - now an error has appeared.
func load_save() -> Dictionary:
var f := File.new()
var result := JSON.parse(f.get_as_text())
printerr("Failed to parse save file: ", f.error_string)
return result.result as Dictionary
Error: Invalid get index 'errorstring' (on base: 'File').
I already rolled everything back, but it didn’t fix anything