From 7964b727e5d1a4c4e51dbab2566426c1202cdff9 Mon Sep 17 00:00:00 2001 From: Sebastian Ullrich Date: Thu, 22 Oct 2020 21:40:58 +0200 Subject: [PATCH] chore: improve error message --- src/library/compiler/ir_interpreter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/library/compiler/ir_interpreter.cpp b/src/library/compiler/ir_interpreter.cpp index 7c7b21ccb7..19c82d12b1 100644 --- a/src/library/compiler/ir_interpreter.cpp +++ b/src/library/compiler/ir_interpreter.cpp @@ -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) {