Skip to content

Commit 446dee1

Browse files
committed
Convert delivery report error from string to code for richer error
1 parent 1b20ce6 commit 446dee1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/callbacks.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ void DeliveryReportDispatcher::Flush() {
291291

292292
if (event.is_error) {
293293
// If it is an error we need the first argument to be set
294-
argv[0] = Nan::Error(event.error_string.c_str());
294+
argv[0] = Nan::New(event.error_code);
295295
} else {
296296
argv[0] = Nan::Null();
297297
}

0 commit comments

Comments
 (0)