From 1b7e392fa1147fa63aa18325636bc14e071417ad Mon Sep 17 00:00:00 2001 From: Chris Johns Date: Thu, 21 Feb 2013 10:16:52 +1100 Subject: [PATCH] Make the shell cmd path relative on error. --- source-builder/sb/build.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source-builder/sb/build.py b/source-builder/sb/build.py index 805aaf8..4a67ab1 100644 --- a/source-builder/sb/build.py +++ b/source-builder/sb/build.py @@ -365,7 +365,7 @@ class build: self._output('run: ' + cmd) exit_code, proc, output = e.shell(cmd, cwd = path.host(cwd)) if exit_code != 0: - raise error.general('shell cmd failed: ' + cmd) + raise error.general('shell cmd failed: %s' % (os.path.relpath(cmd))) def builddir(self): builddir = self.config.abspath('_builddir')