From 7bf023652dddcda3ead8bb7489d116c8fcb0a9f8 Mon Sep 17 00:00:00 2001 From: amtoine Date: Sat, 8 Jun 2024 12:54:45 +0200 Subject: [PATCH] add colors to error msg --- stdlib-candidate/std-rfc/script-parsing.nu | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stdlib-candidate/std-rfc/script-parsing.nu b/stdlib-candidate/std-rfc/script-parsing.nu index 51d62cd0..e9aa2c48 100644 --- a/stdlib-candidate/std-rfc/script-parsing.nu +++ b/stdlib-candidate/std-rfc/script-parsing.nu @@ -38,7 +38,7 @@ export def parse-arg [ $in | from nuon } catch { error make { - msg: "invalid NUON", + msg: $"(ansi red_bold)invalid NUON(ansi reset)", label: { text: "invalid NUON", span: $span, @@ -48,7 +48,7 @@ export def parse-arg [ if ($val | describe) != $expected_type { error make { - msg: "bad type", + msg: $"(ansi red_bold)bad type(ansi reset)", label: { text: $"type: ($val | describe)", span: $span,