From de8fc264d78847c407975ad6d4a3c687b6a9732f Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Tue, 23 Nov 2021 15:34:44 +0800 Subject: [PATCH] fix unsupported default parameter error message --- nac3core/src/toplevel/helper.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nac3core/src/toplevel/helper.rs b/nac3core/src/toplevel/helper.rs index 5c8b85e75..b9259854f 100644 --- a/nac3core/src/toplevel/helper.rs +++ b/nac3core/src/toplevel/helper.rs @@ -461,6 +461,6 @@ pub fn parse_parameter_default_value(default: &ast::Expr, resolver: &(dyn Symbol ) ) } - _ => unimplemented!("only constant default is supported now at {}", default.location), + _ => Err(format!("unsupported default parameter at {}", default.location)) } }