mirror of
https://github.com/syncthing/syncthing-android.git
synced 2024-12-23 03:11:30 +00:00
Log error code on syncthing binary crash for better logcat searchability.
This commit is contained in:
parent
2eece2e350
commit
5af2e55878
1 changed files with 2 additions and 0 deletions
|
@ -171,6 +171,8 @@ public class SyncthingService extends Service {
|
|||
if (ret != 0) {
|
||||
mMainThreadHandler.post(new Runnable() {
|
||||
public void run() {
|
||||
Log.w(TAG_NATIVE, "Syncthing binary crashed with error code " +
|
||||
Integer.toString(retVal));
|
||||
AlertDialog dialog = new AlertDialog.Builder(SyncthingService.this)
|
||||
.setTitle(R.string.binary_crashed_title)
|
||||
.setMessage(getString(R.string.binary_crashed_message, retVal))
|
||||
|
|
Loading…
Reference in a new issue