Skip to content
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

exit codes and blocking on error #69

Merged
merged 1 commit into from
Feb 17, 2015
Merged

exit codes and blocking on error #69

merged 1 commit into from
Feb 17, 2015

Conversation

evantahler
Copy link
Collaborator

  • Change exit code status when process exits with error (more unix-y)
  • extend the ignore-errors option to also exit early when there is a READ error
    • you san still pass --ignore-errors to the program to keep trying even with errors
  • Add better error messaging when you are attempting to dump an empty cluster of data
  • Test with the new node v12 and iojs

evantahler added a commit that referenced this pull request Feb 17, 2015
exit codes and blocking on error
@evantahler evantahler merged commit ffed53f into master Feb 17, 2015
@evantahler evantahler deleted the exit_codes branch February 17, 2015 06:46
@@ -93,6 +93,11 @@ elasticsearch.prototype.getData = function (limit, offset, callback){

var body = jsonParser.parse(response.body);
self.lastScrollId = body._scroll_id;
if(self.lastScrollId === undefined){
Copy link

Choose a reason for hiding this comment

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

Maybe you can forward the error information included in the body, and if there is none, I will be happy to file a bug with elasticsearch requesting it.

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.

None yet

2 participants