mirror of
https://gitlab.com/ita1024/waf.git
synced 2025-01-26 18:20:22 +01:00
better error messages
This commit is contained in:
parent
57627dc5e9
commit
9fab9e0f6b
@ -356,6 +356,8 @@ class TaskBase(evil):
|
||||
msg = getattr(self, 'last_cmd', '')
|
||||
if getattr(self, "err_msg", None):
|
||||
return self.err_msg
|
||||
elif not self.hasrun:
|
||||
return 'task was not executed for some reason'
|
||||
elif self.hasrun == CRASHED:
|
||||
try:
|
||||
return ' -> task failed (exit status %r): %r\n%r' % (self.err_code, self, msg)
|
||||
@ -364,7 +366,7 @@ class TaskBase(evil):
|
||||
elif self.hasrun == MISSING:
|
||||
return ' -> missing files: %r\n%r' % (self, msg)
|
||||
else:
|
||||
return '?'
|
||||
return 'invalid status %r' % self.hasrun
|
||||
|
||||
def colon(self, var1, var2):
|
||||
"""
|
||||
|
Loading…
x
Reference in New Issue
Block a user