Update src/commands/verify.py
uncomment Exit non-zero on warning status Co-authored-by: qodo-code-review[bot] <151058649+qodo-code-review[bot]@users.noreply.github.com>
This commit is contained in:
parent
79d8b538f8
commit
814e282d9e
|
|
@ -72,9 +72,9 @@ def verify(
|
|||
console.print()
|
||||
generator.render_table(report)
|
||||
|
||||
# # Exit with appropriate code
|
||||
# if report.status == VerificationStatus.WARNING:
|
||||
# raise typer.Exit(code=1)
|
||||
# Exit with appropriate code on warnings
|
||||
if report.status == VerificationStatus.WARNING:
|
||||
raise typer.Exit(code=1)
|
||||
|
||||
except Exception as e:
|
||||
console.print(f"[red]Error during verification:[/red] {e}")
|
||||
|
|
|
|||
Loading…
Reference in New Issue