Skip to content

Commit f28a50d

Browse files
Arthur Cinaderflovilmart
authored andcommitted
Return the error instead of the string Error. (#6)
Promise.reject takes one argument. The result of this change is to print the actual error instead of the string error.
1 parent 891fe9a commit f28a50d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/transfer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ function _processFiles(files, handler) {
120120
}
121121
}, function(error) {
122122
if (error) {
123-
return reject('\nError!', error);
123+
return reject(error);
124124
}
125125
resolve('\nComplete!');
126126
});

0 commit comments

Comments
 (0)