Skip to content

Commit

Permalink
fix videlibri errors not being caught
Browse files Browse the repository at this point in the history
  • Loading branch information
benibela committed Sep 5, 2023
1 parent 847250e commit 849edaf
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ class Import : ImportExportBase() {
if (data == null)
data = try {
Bridge.VLImportAccountsPrepare(filename)
} catch (e: InternalError){
} catch (e: de.benibela.videlibri.jni.InternalError){
showMessage(getString(R.string.import_file_open_failed) + ":\n" + e.message)
null
}
Expand Down Expand Up @@ -330,7 +330,7 @@ class Import : ImportExportBase() {
File(state.fileName).delete()
state.fileName = ""
this.data = null
} catch (e: InternalError) {
} catch (e: de.benibela.videlibri.jni.InternalError) {
showMessage(e.message)
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ class NewLibrary : VideLibriBaseActivity() {
val details =
try {
Bridge.VLGetTemplateDetails(template) ?: return
} catch (e: InternalError) {
} catch (e: de.benibela.videlibri.jni.InternalError) {
showMessage(e.localizedMessage)
return
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ class SourceEdit : VideLibriBaseActivity() {
Bridge.VLReloadLibrary(selection2[fileSpinner.selectedItemPosition].replace(".xml", ""))
else
Bridge.VLReloadTemplate(templateIds[pos - 1])
} catch (e: InternalError) {
} catch (e: de.benibela.videlibri.jni.InternalError) {
showMessage(e.localizedMessage)
}

Expand Down

0 comments on commit 849edaf

Please sign in to comment.