Skip to content
This repository has been archived by the owner on Apr 16, 2022. It is now read-only.

Uncaught exception behavior #122

Closed
RazzM13 opened this issue Mar 28, 2018 · 3 comments
Closed

Uncaught exception behavior #122

RazzM13 opened this issue Mar 28, 2018 · 3 comments

Comments

@RazzM13
Copy link
Contributor

RazzM13 commented Mar 28, 2018

Apparently, when the cfn-lint cli executable encounters an uncaught exception during the validate command, it outputs the associated stack trace.

Perhaps it would be more consistent to output Unable to parse template! instead of the rather lengthy stack trace.

@martysweet
Copy link
Owner

Agreed. This can also be merged with issue #121 to resolve the exit code issue.

Stack traces can be useful for debugging, we still need a method to see this to work out whats gone wrong.

@RazzM13
Copy link
Contributor Author

RazzM13 commented Mar 28, 2018

I've just looked at the cli's usage screen and apparently there's no flag for a debug or verbose mode. Therefore, what I am suggesting is that we perhaps add a new flag -d or -v or something similar for the additional output and that's where we would be seeing the stack trace... just a thought :)

@martysweet
Copy link
Owner

I think adding a --verbose flag would be good, this would then provide further scope if we wish to return other information to the user during runtime.

@martysweet martysweet added this to the v1.6.0 milestone Apr 2, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants