Skip to content

Commit

Permalink
add roc check tip
Browse files Browse the repository at this point in the history
Signed-off-by: Anton-4 <[email protected]>
  • Loading branch information
Anton-4 authored and MatthewJohnHeath committed Aug 30, 2024
1 parent 9977ade commit 344ac11
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions crates/compiler/mono/src/borrow.rs
Original file line number Diff line number Diff line change
Expand Up @@ -395,8 +395,10 @@ impl<'state, 'a> State<'state, 'a> {
Some(s) => s,
None => unreachable!(
"\n\tNo borrow signature for {name:?} layout.\n\n\t\
Tip: This can happen when you call a function with less arguments than it expects.\n\t\
Like `Arg.list!` instead of `Arg.list! {{}}`"
Tip 1: This can happen when you call a function with less arguments than it expects.\n\t\
Like `Arg.list!` instead of `Arg.list! {{}}`.\n\t
Tip 2: `roc check yourfile.roc` can sometimes give you a helpful error.
"
)
};

Expand Down

0 comments on commit 344ac11

Please sign in to comment.