Open
Description
While reviewing coder/modules#329 I noticed we didn't print any errors to stderr. I suggest we add helper functions for this:
# lib
error() {
echo "ERROR: $@" >&2
exit 1 # (optional)
}
log() {
echo "$@"
}
Then use them where appropriate:
log "Installing package..."
install || error "Failed to install package"
// cc @matifali
Metadata
Metadata
Assignees
Labels
No labels