From 9ef693edd6c9572c0ab0b1381fe5e65a8430e8fb Mon Sep 17 00:00:00 2001 From: Jo-Philipp Wich Date: Mon, 26 Apr 2021 20:05:51 +0200 Subject: vm: improve context for early errors Print "Before start of program" for errors that are raised before entering main(), e.g. on module preloading failure. Signed-off-by: Jo-Philipp Wich --- tests/cram/test_basic.t | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/cram/test_basic.t') diff --git a/tests/cram/test_basic.t b/tests/cram/test_basic.t index 5061d37..982d58a 100644 --- a/tests/cram/test_basic.t +++ b/tests/cram/test_basic.t @@ -37,13 +37,13 @@ check that ucode provides proper error messages: $ ucode -m foo -s '' Runtime error: No module named 'foo' could be found - At offset 0 + At start of program [1] $ touch moo; ucode -m foo -i moo Runtime error: No module named 'foo' could be found - At offset 0 + At start of program [1] -- cgit v1.2.3