1
0
Fork 0
mirror of https://github.com/Orama-Interactive/Pixelorama.git synced 2025-01-18 17:19:50 +00:00

Added error code to pxo open/save error messages

This commit is contained in:
OverloadedOrama 2020-10-06 04:37:43 +03:00
parent 3be5f27c5c
commit e5c371cf88
2 changed files with 4 additions and 4 deletions

View file

@ -1203,10 +1203,10 @@ msgstr ""
msgid "File autosaved"
msgstr ""
msgid "File failed to open"
msgid "File failed to open. Error code %s"
msgstr ""
msgid "File failed to save"
msgid "File failed to save. Error code %s"
msgstr ""
msgid "File exported"

View file

@ -53,7 +53,7 @@ func open_pxo_file(path : String, untitled_backup : bool = false) -> void:
err = file.open(path, File.READ) # If the file is not compressed open it raw (pre-v0.7)
if err != OK:
Global.notification_label("File failed to open")
Global.notification_label(tr("File failed to open. Error code %s") % err)
file.close()
return
@ -317,7 +317,7 @@ func save_pxo_file(path : String, autosave : bool, use_zstd_compression := true,
Global.file_menu.get_popup().set_item_text(3, tr("Save") + " %s" % path.get_file())
else:
Global.notification_label("File failed to save")
Global.notification_label(tr("File failed to save. Error code %s") % err)
file.close()