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}" ]]
|
[[ -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() {
|
throw() {
|
||||||
if spinning; then
|
if spinning; then
|
||||||
spop
|
spop
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue