change error info of native function __builtin_import

This commit is contained in:
ValKmjolnir 2022-01-31 14:48:51 +08:00
parent df24db5b58
commit baa4f5a258
1 changed files with 6 additions and 1 deletions

View File

@ -572,7 +572,12 @@ nasal_ref builtin_import(std::vector<nasal_ref>& 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<nasal_ref>& local,nasal_gc& gc)
{