hare

The Hare programming language
git clone https://git.torresjrjr.com/hare.git
Log | Files | Refs | README | LICENSE

commit e876bc43b865a3f4a5904eb569ab0c3f2112e5c1
parent 7d7decca68ba1b0f3b252d2868d7b857df115973
Author: Drew DeVault <sir@cmpwn.com>
Date:   Sat, 13 Mar 2021 18:07:10 -0500

hare {build,run}: improve module not found error

Diffstat:
Mcmd/hare/subcmds.ha | 6++++--
1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/cmd/hare/subcmds.ha b/cmd/hare/subcmds.ha @@ -79,7 +79,8 @@ fn build(args: []str) void = { let ver = match (module::scan(&ctx, input)) { ver: module::version => ver, - err: module::error => fmt::fatal("Error scanning module: {}", + err: module::error => fmt::fatal( + "Error scanning input module: {}", module::errstr(err)), }; @@ -165,7 +166,8 @@ fn run(args: []str) void = { let ver = match (module::scan(&ctx, input)) { ver: module::version => ver, - err: module::error => fmt::fatal("Error scanning module: {}", + err: module::error => fmt::fatal( + "Error scanning input module: {}", module::errstr(err)), };