Commit 2e4b3c99 authored by lintangsutawika's avatar lintangsutawika
Browse files

modifed error message

parent 6f42ab7c
...@@ -136,10 +136,13 @@ def main(): ...@@ -136,10 +136,13 @@ def main():
task_missing.append(task) task_missing.append(task)
if task_missing != []: if task_missing != []:
missing = ", ".join(task_missing),
eval_logger.error( eval_logger.error(
"Tasks were not found: {}\n" f"Tasks were not found: {missing}\n"
"{}Try `lm-eval -h` for list of available tasks".format(", ".join(task_missing), SPACING) f"{SPACING}Try `lm-eval -h` for list of available tasks",
) )
raise ValueError(f"Tasks {missing} were not found.")
if args.output_path: if args.output_path:
path = Path(args.output_path) path = Path(args.output_path)
......
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