Make the shell cmd path relative on error.

This commit is contained in:
Chris Johns 2013-02-21 10:16:52 +11:00
parent e5aa27f028
commit 1b7e392fa1

View File

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