chore: improve error message

This commit is contained in:
Sebastian Ullrich 2020-10-22 21:40:58 +02:00
parent 4d95c36885
commit 7964b727e5

View file

@ -809,7 +809,7 @@ class interpreter {
}
} else {
if (decl_tag(e.m_decl) == decl_kind::Extern) {
throw exception(sstream() << "unexpected external declaration '" << fn << "'");
throw exception(sstream() << "could not find native implementation of external declaration '" << fn << "'");
}
// evaluate args in old stack frame
for (const auto & arg : args) {