GodotNuts / GodotFirebase

Implementations of Firebase for Godot using GDScript
MIT License
532 stars 76 forks source link

Fix for hard crashes when trying to open file #96

Closed BearDooks closed 3 years ago

BearDooks commented 3 years ago

This will close #95

The code now checks to make sure opening the file does not result in an error state. as long as var err == 0 or OK then everything will work. If not it will print out the error code to the console and continue along.

I checked this in my own project by saving a file with a password I set, and then opening it with a different one. Instead of crashing, the console printed "Error opening file. Error code: 16"

WolfgangSenff commented 3 years ago

Closes #95