Skip to content

fix #92#99

Merged
erunion merged 4 commits intoreadmeio:masterfrom
raphaelsoul:master
Jul 1, 2020
Merged

fix #92#99
erunion merged 4 commits intoreadmeio:masterfrom
raphaelsoul:master

Conversation

@raphaelsoul
Copy link
Copy Markdown
Contributor

hi i've fixed #92 that error not be captured and process always exit with zero return code

@raphaelsoul
Copy link
Copy Markdown
Contributor Author

notice pls: need a build

Comment thread src/swagger-inline.js Outdated

return outputResult(swagger, options);
}).catch(e => {
console.error(e);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thoughts on throwing the error instead of putting it in the console?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yep updated.
throwing it will be better than exit process directly.

Toolchains not triggers because I edited it on github web page lol. Thought it will be a small fix but found it wrong😆.

Btw wrote a test case to cover process exit code.

@erunion
Copy link
Copy Markdown
Member

erunion commented Jun 8, 2020

Not sure why tests aren't building against this, but running them locally it's all good.

# Conflicts:
#	package-lock.json
@erunion erunion merged commit 99564bf into readmeio:master Jul 1, 2020
@erunion
Copy link
Copy Markdown
Member

erunion commented Jul 1, 2020

Published into v3.1.1. Thanks again for the help!

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Return nonzero value on failure and print errors on stderr

2 participants