hare

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

commit ebe8bdb0c964c12e6c277d61ebabd3e68ef843c6
parent f95af062e2331caeb4bffbe1f62e7f3c61bf2f59
Author: Sebastian <sebastian@sebsite.pw>
Date:   Thu, 21 Apr 2022 15:44:40 -0400

haretype: use types::strerror

Signed-off-by: Sebastian <sebastian@sebsite.pw>

Diffstat:
Mcmd/haretype/main.ha | 3+--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/cmd/haretype/main.ha b/cmd/haretype/main.ha @@ -87,8 +87,7 @@ export fn main() void = { case let err: parse::error => fmt::fatal("{}", parse::strerror(err)); case (types::deferred | types::error) => - // XXX: hare::types should provide a strerror function - fmt::fatal("Invalid type"); + fmt::fatal("{}", types::strerror(err)); }; }; };