From 0e914cf05791b3159b300d0aa79aa8124600a8ee Mon Sep 17 00:00:00 2001 From: greg Date: Sun, 19 Aug 2018 15:12:34 -0700 Subject: [PATCH] Error message for parsing guards --- schala-lang/src/parsing.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/schala-lang/src/parsing.rs b/schala-lang/src/parsing.rs index 41c9fcb..92964c6 100644 --- a/schala-lang/src/parsing.rs +++ b/schala-lang/src/parsing.rs @@ -710,7 +710,7 @@ impl Parser { let pat = self.pattern()?; Guard::Pat(pat) }, - _ => unimplemented!() //TODO fix + e => return ParseError::new(&format!("{:?} not valid in pattern guard", e)), }) });