bash-oo-framework
bash-oo-framework copied to clipboard
Try/Catch syntax error
Hi,
i'm trying to implement try/catch util but no success so far.
Following code
try {
# many lines of code
} catch {
# Handling error
}
Gives me an error:
script.sh: syntax error near unexpected token }' script.sh: line 159: } catch {'
Any clue what's wrong with try catch syntax and/or implementation?
Have you included util/exception util/tryCatch?