1
0
Fork 0
mirror of https://github.com/syncthing/syncthing-android.git synced 2024-11-22 12:21:15 +00:00

Log error code on syncthing binary crash for better logcat searchability.

This commit is contained in:
Felix Ableitner 2014-08-03 17:18:00 +02:00
parent 2eece2e350
commit 5af2e55878

View file

@ -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))