-
Notifications
You must be signed in to change notification settings - Fork 4
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 displays error output #233
Comments
Can you paste the DMScript in here so I can see what it looks like? I presume: try { Are you saying the parse error is being reported to stderr (in red) at the set res = part or the echo in the catch block (if any) is reporting to stderr? |
set servers = ${environment.servers}; iterate(s: $servers) set login = {"auth":{"RAX-KSKEY:apiKeyCredentials":{"username":"$OpenStackUser","apiKey":"$OpenStackApiKey"}}}; set auth={"X-Auth-Token": "$token"}; // Returned token will be included in the header set found = 0; for (n = 0; $n < $x; n = $n + 1)
} if ($found = 1)
} set myvar = AwsEC2($parms); for (n = 0; $n < $x; n = $n + 1)
} if ($found = 1)
} |
INFO: Starting deployment #1780INFO: Deploying Application "IT Guys;3" into Environment "IT Guys Dev ZS" |
Right, the error will still be thrown but it'll be caught by the catch block rather than throwing a runtime exception. I assume the "Syntax error at line 1" is what's coming out in red? |
Correct. That should not be displayed since I am catching the exception.
Steve Taylor
CITA and Co-Founder / OpenMake Software / tel: + 1.505.424.6439 x114 / mob:
+1.505.920.6106
Follow us on: Blog <https://www.openmakesoftware.com/insights/> / Twitter
<http://www.twitter.com/openmake>/ Facebook
<https://www.facebook.com/pages/OpenMake-Software/478045172208305> /
LinkedIn <https://www.linkedin.com/in/steve-taylor-b539205> / YouTube
<https://www.youtube.com/channel/UCSgF51hv2Qy88POFsA59uJQ>/ Google+
<https://plus.google.com/u/0/+Openmakesoftware>
*Winners of the Jolt Award in Change and Configuration Management*
…On Thu, Dec 7, 2017 at 4:07 PM, pgibbs-openmake ***@***.***> wrote:
Right, the error will still be thrown but it'll be caught by the catch
block rather than throwing a runtime exception. I assume the "Syntax error
at line 1" is what's coming out in red?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#233 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AOI8TNz3ZqEkImwW8TdWMndvF2c5z_nlks5s-G-3gaJpZM4Q6S3E>
.
|
Try/Catch of invalid parse from restful_get shows output in red in log. try catch should now display output by default
The text was updated successfully, but these errors were encountered: