Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1043,6 +1043,10 @@ class MainActivity : AppCompatActivity(), ReloadableActivity, ScannerView.Result
(application as PretixScan).connectivityHelper.recordSuccess(System.currentTimeMillis() - startedAt)
}
}
} catch (e: CheckException) {
(application as PretixScan).connectivityHelper.recordError()
checkResult = TicketCheckProvider.CheckResult(TicketCheckProvider.CheckResult.Type.INVALID, getString(R.string.error_exception))
checkResult.reasonExplanation = e.message
} catch (e: Exception) {
Sentry.captureException(e)
if (BuildConfig.DEBUG) {
Expand Down
1 change: 1 addition & 0 deletions pretixscan/app/src/main/res/values-de/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
<string name="progress_registering">Gerät beim Server registrieren…</string>
<string name="error_access_revoked">Der Gerätezugriff wurde entfernt, Sie müssen das Gerät am Server neu registrieren.</string>
<string name="error_unknown_exception">Ein unbekannter Fehler ist aufgetreten</string>
<string name="error_exception">Ein Fehler ist aufgetreten</string>
<string name="error_not_synchronized">Ihr Gerät ist nicht korrekt mit dem Server synchronisiert</string>
<string name="action_label_settings">Einstellungen</string>
<string name="action_label_statistics">Statistiken</string>
Expand Down
1 change: 1 addition & 0 deletions pretixscan/app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
<string name="progress_registering">Registering device with server…</string>
<string name="error_access_revoked">Device access has been revoked, you need to register the device with the server again.</string>
<string name="error_unknown_exception">An unknown error has occurred</string>
<string name="error_exception">An error has occurred</string>
<string name="error_not_synchronized">Your device has not been properly synchronized with the server</string>
<string name="action_label_ok">OK</string>
<string name="action_label_settings">Settings</string>
Expand Down
Loading