To protect your data, the CISO officer has suggested users to enable GitLab 2FA as soon as possible.

Commit cd869a1f authored by Zixian Cai's avatar Zixian Cai
Browse files

Display more informative error msg

parent 0653f798
......@@ -115,7 +115,7 @@ class TaskSet:
task_print(task_name,
crayons.red('parsing configuration failed.'))
logger.critical(crayons.red(str(e)))
# ts.tasks.append(Task(ts, task_name, **task_conf))
# ts.tasks.append(Task(ts, task_name, **task_conf))
return ts
......@@ -145,7 +145,7 @@ class TaskSet:
targets[task] = task.srcfile
# run
data = {t: [] for t in targets} # only run tasks that have a target
data = {t: [] for t in targets} # only run tasks that have a target
# Generating record
for i in range(self.iterations):
......@@ -252,7 +252,11 @@ class Task:
# but rather the Result should be *about* a TaskSet
def add_datapoint(self, stdout, stderr, t_proc):
if self.callback['name'] == 'clock':
dp = float(stdout.split()[-1])
try:
dp = float(stdout.split()[-1])
except:
raise RuntimeError(
"Cannot extract duration from last line of stdout")
else:
msg = "'%(name)s' callback output processing not implemented" % self.callback
raise NotImplementedError(msg)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment