testing new function throw-err
This commit is contained in:
parent
eee5ff9972
commit
6f8e08bb57
1 changed files with 10 additions and 0 deletions
10
dream.sh
10
dream.sh
|
@ -794,6 +794,16 @@ spinning() {
|
|||
[[ -n "${_spinner_pid}" ]]
|
||||
}
|
||||
|
||||
throw-err() {
|
||||
if spinning; then
|
||||
spop
|
||||
upclear
|
||||
fi
|
||||
pen -n red "${_cross:-✗} "
|
||||
pen bold yellow "OUT: ${out:-}"
|
||||
pen bold red "ERROR: ${err:-}"
|
||||
}
|
||||
|
||||
throw() {
|
||||
if spinning; then
|
||||
spop
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue