Skip to content

Commit

Permalink
Fixing output on conf error
Browse files Browse the repository at this point in the history
  • Loading branch information
bfren committed Oct 23, 2023
1 parent e7fe2cb commit 6d8932d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion overlay/etc/nu/scripts/bf-unbound/conf.nu
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ export def check [] {

# capture output of unbound-checkconf executable
let result = do { ^bf-x-as unbound-checkconf (bf env UNBOUND_CONF) } | complete
if $result.exit_code > 0 { $result | into string | bf write error --code $result.exit_code $in conf/check }
if $result.exit_code > 0 { bf write error --code $result.exit_code $result.stderr conf/check }
}

0 comments on commit 6d8932d

Please sign in to comment.