Skip to content

Commit 66b0577

Browse files
committed
Fixed error handling in SUCCESS().
1 parent 9ee42aa commit 66b0577

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@ global.SUCCESS = function(success, value) {
438438
var err;
439439

440440
if (success instanceof Error) {
441-
err = success;
441+
err = success.toString();
442442
success = false;
443443
} else if (success instanceof framework_builders.ErrorBuilder) {
444444
if (success.hasError()) {

0 commit comments

Comments
 (0)