Skip to content
This repository was archived by the owner on Mar 18, 2018. It is now read-only.

Conversation

@hellosimon
Copy link
Contributor

This fixes an error during rollback where the result of several exec's is expected to be [ 'path_to_file\n' ]
but instead is returned as [ [ 'path_to_file\n', '' ] ].

This fixes an error during rollback where the result of several exec's is expected to be [ 'path_to_file\n' ]
but instead is returned as [ [ 'path_to_file\n', '' ] ].
@gregberge
Copy link
Member

@hellosimon thanks for your fix, but can you add a test please?

@hellosimon
Copy link
Contributor Author

@neoziro ... no problem. Let me know if you spot any issues. Thanks!

@gregberge
Copy link
Member

Hmm, I am sorry but I think that it's important to return the stderr isn't it?

@hellosimon
Copy link
Contributor Author

Hmmm, not for the callback. If there is an error then "err" will get set in the callback and the right thing will happen. The callback function doesn't need to know what the error was just that one occurred. The connection pipes stderr to the linewrapper for the user to see what the error was.

@gregberge
Copy link
Member

Yes you are right, OK.

gregberge added a commit that referenced this pull request May 9, 2014
Don't pass exec's stderr to the callback.
@gregberge gregberge merged commit 139b64f into shipitjs:master May 9, 2014
@gregberge
Copy link
Member

@hellosimon you use grunt-shipit in production ?

@hellosimon
Copy link
Contributor Author

Not yet, but hopefully soon enough! :) I can say that it's working really well so far, so thanks for that!

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

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants