mirror of
https://github.com/ivuorinen/dotfiles.git
synced 2026-02-15 19:53:42 +00:00
chore(dfm): cleanup, fixes
This commit is contained in:
@@ -65,16 +65,16 @@ lib::error::handle()
|
||||
local command=$2
|
||||
|
||||
case $exit_code in
|
||||
${ERROR_CODES[INVALID_ARGUMENT]})
|
||||
"${ERROR_CODES[INVALID_ARGUMENT]}")
|
||||
lib::error "Invalid argument at line $line_no in command '$command'"
|
||||
;;
|
||||
${ERROR_CODES[COMMAND_NOT_FOUND]})
|
||||
"${ERROR_CODES[COMMAND_NOT_FOUND]}")
|
||||
lib::error "Command not found at line $line_no"
|
||||
;;
|
||||
${ERROR_CODES[FUNCTION_NOT_FOUND]})
|
||||
"${ERROR_CODES[FUNCTION_NOT_FOUND]}")
|
||||
lib::error "Function not found at line $line_no in command '$command'"
|
||||
;;
|
||||
${ERROR_CODES[EXECUTION_FAILED]})
|
||||
"${ERROR_CODES[EXECUTION_FAILED]}")
|
||||
lib::error "Execution failed at line $line_no in command '$command'"
|
||||
;;
|
||||
*)
|
||||
|
||||
Reference in New Issue
Block a user