Sanitize error message in "throw"

This commit is contained in:
Přemysl Eric Janouch 2018-10-09 08:53:39 +02:00
parent f452191e62
commit a004e91c80
Signed by: p
GPG Key ID: A0420B94F92B9493
1 changed files with 1 additions and 1 deletions

2
ell.c
View File

@ -1191,7 +1191,7 @@ ell_defn (ell_fn_throw) {
struct ell_v *message = args;
if (!message || message->type != ELL_STRING)
return ell_error (ell, "first argument must be string");
return ell_error (ell, message->string);
return ell_error (ell, "%s", message->string);
}
ell_defn (ell_fn_plus) {