mirror of
https://github.com/astral-sh/ruff.git
synced 2025-09-27 12:29:28 +00:00
Gracefully handle lint panics (#3509)
This commit is contained in:
parent
f06dff8af8
commit
9ac9a1c69e
5 changed files with 93 additions and 10 deletions
|
@ -18,6 +18,7 @@ pub mod args;
|
|||
mod cache;
|
||||
mod commands;
|
||||
mod diagnostics;
|
||||
mod panic;
|
||||
mod printer;
|
||||
mod resolve;
|
||||
|
||||
|
@ -46,7 +47,6 @@ pub fn run(
|
|||
log_level_args,
|
||||
}: Args,
|
||||
) -> Result<ExitStatus> {
|
||||
#[cfg(not(debug_assertions))]
|
||||
{
|
||||
use colored::Colorize;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue