aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/node/ext/call.cc
diff options
context:
space:
mode:
authorGravatar Tim Emiola <tbetbetbe@users.noreply.github.com>2015-08-19 10:43:33 -0700
committerGravatar Tim Emiola <tbetbetbe@users.noreply.github.com>2015-08-19 10:43:33 -0700
commit36afec71cebc11572a3e5854dece1e52d02849fa (patch)
tree208d17103fe41774ca4fd93d823f54feb678b977 /src/node/ext/call.cc
parent7948de6815c9c35d831c5eb87ef111dae0ad800b (diff)
parent28c37b8856b952892a41e578b3ce1cc759255f08 (diff)
Merge pull request #2955 from murgatroid99/node_nan_deprecation_warnings
Added an inline C++ function to replace a deprecated nan function
Diffstat (limited to 'src/node/ext/call.cc')
-rw-r--r--src/node/ext/call.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/node/ext/call.cc b/src/node/ext/call.cc
index dafe44c7a6..18858fa334 100644
--- a/src/node/ext/call.cc
+++ b/src/node/ext/call.cc
@@ -623,7 +623,7 @@ NAN_METHOD(Call::StartBatch) {
call->wrapped_call, &ops[0], nops, new struct tag(
callback, op_vector.release(), resources), NULL);
if (error != GRPC_CALL_OK) {
- return NanThrowError("startBatch failed", error);
+ return NanThrowError(nanErrorWithCode("startBatch failed", error));
}
CompletionQueueAsyncWorker::Next();
NanReturnUndefined();
@@ -637,7 +637,7 @@ NAN_METHOD(Call::Cancel) {
Call *call = ObjectWrap::Unwrap<Call>(args.This());
grpc_call_error error = grpc_call_cancel(call->wrapped_call, NULL);
if (error != GRPC_CALL_OK) {
- return NanThrowError("cancel failed", error);
+ return NanThrowError(nanErrorWithCode("cancel failed", error));
}
NanReturnUndefined();
}