heads icon indicating copy to clipboard operation
heads copied to clipboard

etc/functions: add a confirmation prompt in warn prior of continuing

Open tlaurion opened this issue 3 years ago • 0 comments
trafficstars

A lot of calls to warn in code are happening in between GUI prompts and are not reaching the user (going to console and show error there on called scripts do not reach user eyes).

@MrChromebox : this may become an annoyance in current codebase, but as of now, we only have die and warn, where warn is used supposedly to warn user of something that happened, without actually showing output on screen sometimes; the next fbwhiptail output resetting the screen and leaving the user unaware of what wrong happened (where die is radical failing)

An alternative could be to add an error prompt beside die and warn in functions and review code for what should be used in which case. Thoughts?

tlaurion avatar Apr 06 '22 15:04 tlaurion