Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed handling of errors

  • Loading branch information...
commit 81ec6881c3a0f60a6527bf201d23280876004d31 1 parent aa38ca9
Bernardo Heynemann authored
Showing with 4 additions and 2 deletions.
  1. +4 −2 skink/services/
6 skink/services/
@@ -14,9 +14,11 @@ def execute(self, command, base_path, change_dir=True):
proc = Popen(command.split(" "), stdout=PIPE, stderr=PIPE, cwd=base_path)
log = "\n".join(proc.communicate())
exit_code = proc.returncode
+ return ExecuteResult(command, log, exit_code)
except Exception, err:
- return ExecuteResult(command, "An error occured while executing command %s: %s" % (command, err), 1)
- return ExecuteResult(command, log, exit_code)
+ error_message = "An error occured while executing command %s: %s" % (command, err)
+ return ExecuteResult(command, error_message, 1)
class ExecuteResult(object):
def __init__(self, command, run_log, exit_code):
Please sign in to comment.
Something went wrong with that request. Please try again.