From 344ac115c46f71d2d32934be55ab76a3c749aafa Mon Sep 17 00:00:00 2001 From: Anton-4 <17049058+Anton-4@users.noreply.github.com> Date: Tue, 27 Aug 2024 20:29:12 +0200 Subject: [PATCH] add roc check tip Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com> --- crates/compiler/mono/src/borrow.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/crates/compiler/mono/src/borrow.rs b/crates/compiler/mono/src/borrow.rs index ba012249427..835ed29388d 100644 --- a/crates/compiler/mono/src/borrow.rs +++ b/crates/compiler/mono/src/borrow.rs @@ -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. + " ) };