mirror of
https://github.com/fish-shell/fish-shell
synced 2024-11-10 15:14:44 +00:00
Store output
Now we can explain which file printed the error
This commit is contained in:
parent
e358ec0ce2
commit
43459d1750
1 changed files with 4 additions and 2 deletions
|
@ -3,7 +3,9 @@
|
|||
|
||||
# No output is good output
|
||||
for f in $__fish_data_dir/completions/*.fish
|
||||
if command -q (string replace -r '.*/([^/]+).fish' '$1' $f)
|
||||
$fish $f
|
||||
if type -q (string replace -r '.*/([^/]+).fish' '$1' $f)
|
||||
set -l out ($fish $f 2>&1 | string collect)
|
||||
test -n "$out"
|
||||
and echo -- OUTPUT from $f: $out
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue