Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Try/Catch syntax error #47

Open
djob opened this issue May 25, 2018 · 1 comment
Open

Try/Catch syntax error #47

djob opened this issue May 25, 2018 · 1 comment

Comments

@djob
Copy link

djob commented May 25, 2018

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?

@djob djob changed the title Try/Catch Syntay Error Try/Catch syntax error May 25, 2018
@djob djob closed this as completed May 25, 2018
@djob djob reopened this May 25, 2018
@rbukovansky
Copy link

Have you included util/exception util/tryCatch?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants