Skip to content

Commit

Permalink
Handle error code 127 and allow user to download missing daemon execu…
Browse files Browse the repository at this point in the history
…table
  • Loading branch information
kozec committed Apr 14, 2015
1 parent b081859 commit 3019327
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion syncthing_gtk/daemonprocess.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,11 @@ def _cb_finished(self, proc, results):
except GLib.GError:
# Exited with exit code
log.info("Subprocess exited with code %s", proc.get_exit_status())
self.emit('exit', proc.get_exit_status())
if proc.get_exit_status() == 127:
# Command not found
self.emit("failed", Exception("Command not found"))
else:
self.emit('exit', proc.get_exit_status())
if IS_WINDOWS: self._stdout.close()
self._cancel.cancel()

Expand Down

0 comments on commit 3019327

Please sign in to comment.