Use error macro

This commit is contained in:
Ayaz Hafiz 2022-04-15 08:51:29 -04:00
parent 8f335c3278
commit fbe7ccf4c8
No known key found for this signature in database
GPG Key ID: 0E2A37416A25EF58

View File

@ -1,5 +1,5 @@
use bitflags::bitflags;
use roc_error_macros::todo_abilities;
use roc_error_macros::{internal_error, todo_abilities};
use roc_module::ident::{Lowercase, TagName};
use roc_module::symbol::Symbol;
use roc_types::subs::Content::{self, *};
@ -147,7 +147,7 @@ impl Unified {
vars,
must_implement_ability,
} => (vars, must_implement_ability),
_ => panic!("{}", err_msg),
_ => internal_error!("{}", err_msg),
}
}
}