mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-06-27 00:18:56 +02:00
YAY looking a lot better, need to do rest of filter error
This commit is contained in:
parent
01fb9ec25b
commit
82d9e7a223
5 changed files with 222 additions and 45 deletions
|
@ -46,3 +46,16 @@ var GitError = exports.GitError = MyError.extend({
|
|||
}
|
||||
});
|
||||
|
||||
var filterError = function(err) {
|
||||
if (err instanceof CommandProcessError ||
|
||||
err instanceof GitError ||
|
||||
err instanceof CommandResult ||
|
||||
err instanceof Warning) {
|
||||
// yay! one of ours
|
||||
return;
|
||||
} else {
|
||||
throw err;
|
||||
}
|
||||
};
|
||||
|
||||
exports.filterError = filterError;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue