FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

fix #18 by felschr · Pull Request #19 · cfchou/serverless-python-individually · GitHub

Repository navigation

fix #18 - #19

Open
felschr wants to merge 1 commit into
cfchou:masterfrom
felschr:patch-2
Open

felschr wants to merge 1 commit into
cfchou:masterfrom
felschr:patch-2

Conversation

felschr commented Jan 28, 2019

Copy link
Copy Markdown
Contributor

Fixes error caused by new python 2.7 deprecation warning.

Fixes error caused by new python 2.7 deprecation warning.
Comment thread index.js
ret.stderr.indexOf('DEPRECATION:') < 0;
if (ret.error || (ret.stderr.length != 0 && isNotPipWarning)) {
this.log('Unhandled error in pip, not deploying to AWS.');
return BbPromise.reject(ret.error)

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

One could consider to change the reject message for errors that is not a warning (undefined when from ret.stderr) .
return BbPromise.reject(ret.error || ret.stderr.toString())

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.

Choose a reason Spam Abuse Off Topic Outdated Duplicate Resolved Low Quality

Ah, I briefly searched for how to differentiate errors from warnings in node.js but couldn't find the solution.
I guess it would be even better to not do the rejection for warnings at all?

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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.

2 participants


Back | FazBrowse Home | New Git URL