mirror of
https://github.com/nushell/nu_scripts.git
synced 2024-08-17 09:20:28 +03:00
add colors to error msg
This commit is contained in:
parent
1889e05e3f
commit
7bf023652d
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user