Extend rippleerror properties

This commit is contained in:
wltsmrz
2013-11-07 11:47:10 -08:00
parent 3491fec469
commit 0f80f6d4ae

View File

@@ -12,9 +12,9 @@ function RippleError(code, message) {
break;
}
this.result = this.result || this.engine_result || this.error || 'Error';
this.result_message = this.result_message || this.engine_result_message || this.error_message || 'Error';
this.message = this.result_message;
this.engine_result = this.result = (this.result || this.engine_result || this.error || 'Error');
this.engine_result_message = this.result_message = (this.result_message || this.engine_result_message || this.error_message || 'Error');
this.result_message = this.message = (this.result_message);
var stack;
if (!!Error.captureStackTrace)