Skip to content

Commit

Permalink
Merge pull request #7037 from roc-lang/roc-check-tip
Browse files Browse the repository at this point in the history
add roc check tip
  • Loading branch information
Anton-4 committed Aug 28, 2024
2 parents 7811d88 + ed01e52 commit 479feca
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 479feca

Please sign in to comment.