mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-07-10 06:34:26 +02:00
more
This commit is contained in:
parent
3d1890bb3b
commit
a4169dc016
4 changed files with 64 additions and 22 deletions
|
@ -2,18 +2,18 @@ function CommandProcessError(msg) {
|
|||
this.msg = msg;
|
||||
}
|
||||
|
||||
CommandProcessError.prototype = _.copy(Error.prototype);
|
||||
|
||||
CommandProcessError.prototype.toString = function() {
|
||||
return 'Command Process Error: ' + this.msg;
|
||||
};
|
||||
|
||||
CommandProcessError.prototype.toResult = function() {
|
||||
return this.msg.replace('\n', '</br>');
|
||||
};
|
||||
|
||||
function CommandResult(msg) {
|
||||
this.msg = msg;
|
||||
}
|
||||
|
||||
CommandResult.prototype = _.copy(Error.prototype);
|
||||
|
||||
CommandResult.prototype.toString = function() {
|
||||
return 'Command Result: ' + this.msg;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue