Skip to content

Commit

Permalink
chore: improve error message for InternalError (#2429)
Browse files Browse the repository at this point in the history
  • Loading branch information
kek kek kek authored Aug 24, 2023
1 parent d31ae7f commit ff62377
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/noirc_evaluator/src/errors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -94,11 +94,11 @@ impl From<RuntimeError> for FileDiagnostic {
impl RuntimeError {
fn into_diagnostic(self) -> Diagnostic {
match self {
RuntimeError::InternalError(_) => {
RuntimeError::InternalError(cause) => {
Diagnostic::simple_error(
"Internal Consistency Evaluators Errors: \n
This is likely a bug. Consider Opening an issue at https://github.com/noir-lang/noir/issues".to_owned(),
"".to_string(),
cause.to_string(),
noirc_errors::Span::inclusive(0, 0)
)
}
Expand Down

0 comments on commit ff62377

Please sign in to comment.