Skip to content

Commit

Permalink
v 0.2.1 agrego showContext para showAndThrow
Browse files Browse the repository at this point in the history
  • Loading branch information
emilioplatzer committed Aug 28, 2017
1 parent c2be6c4 commit 87b7a29
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions lib/discrepances.js
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,9 @@ discrepances.showAndThrow = function showAndThrow(a, b, opts){
}
}
if(firstError){
if(opts && opts.showContext){
console.log('context:',opts.showContext);
}
throw new Error("discrepances in "+firstError);
}
};
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "discrepances",
"description": "show discrepances in several flavors",
"version": "0.2.0",
"version": "0.2.1",
"author": "Codenautas <codenautas@googlegroups.com>",
"repository": "codenautas/discrepances",
"license": "MIT",
Expand Down

0 comments on commit 87b7a29

Please sign in to comment.