add colors to error msg

This commit is contained in:
amtoine 2024-06-08 12:54:45 +02:00
parent 1889e05e3f
commit 7bf023652d
No known key found for this signature in database
GPG Key ID: 37AAE9B486CFF1AB

View File

@ -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,