From baa4f5a2589dad28e0510a8afb0f378c603ee545 Mon Sep 17 00:00:00 2001 From: ValKmjolnir Date: Mon, 31 Jan 2022 14:48:51 +0800 Subject: [PATCH] change error info of native function __builtin_import --- nasal_builtin.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/nasal_builtin.h b/nasal_builtin.h index dbb2258..d9040c5 100644 --- a/nasal_builtin.h +++ b/nasal_builtin.h @@ -572,7 +572,12 @@ nasal_ref builtin_import(std::vector& local,nasal_gc& gc) { // this function is used in preprocessing. // this function will return nothing when running. - return builtin_err("import","this function is used to link files together"); + return builtin_err( + "import", + "\n\tthis function is used to link files together. " + "\n\tmake sure it is used in global scope. " + "\n\tmake sure it has correct argument(only one arg allowed)" + ); } nasal_ref builtin_die(std::vector& local,nasal_gc& gc) {