Skip to content

Commit 74c3e8d

Browse files
authored
Merge pull request #26 from katzuv/hotfix/change-error-printing-color
Print Python error in solution in red
2 parents 8acdf3d + 479fe12 commit 74c3e8d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

solution_runner/commands/submit_command.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ def _get_answer(input_text: str, solution_path: Path) -> str:
128128
)
129129
# If an error occurred in the called solution file, print the exception and abort.
130130
except subprocess.CalledProcessError as error:
131-
print(error.stderr)
131+
click.secho(error.stderr, fg="red")
132132
raise click.Abort()
133133

134134
solution = result.stdout.strip()

0 commit comments

Comments
 (0)