Skip to content

Commit 318cfa6

Browse files
committed
update
1 parent 4349a24 commit 318cfa6

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

nushell/init.nu

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,7 @@ def mkerr [
1111
--cond (-c) = true
1212
] {
1313
if ($cond) {
14-
error make {
15-
msg: $msg
16-
}
14+
error make --unspanned { msg: $msg }
1715
}
1816
}
1917

@@ -109,7 +107,7 @@ def gfu [
109107
}
110108

111109
let $push = (git push | complete)
112-
mkerr "push failed" -c ($push.exit_code == 1)
110+
mkerr $"push failed\n($push.stderr)" -c ($push.exit_code == 1)
113111

114112
if ($pr) {
115113
gh pr create --fill-first $"--draft=($draft)"

0 commit comments

Comments
 (0)