Skip to content
Browse files

Ignore NotFound errors in automatic error handling.

  • Loading branch information...
1 parent 65b8e1b commit 0f9f52d6f04b29fb878ceb3be3b3f207f232d748 @justmoon justmoon committed Aug 5, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 src/cpp/handle.cc
View
3 src/cpp/handle.cc
@@ -94,7 +94,8 @@ class JHandle::OpAsync {
if ((error.IsEmpty() || error->IsNull()) &&
(result.IsEmpty() || result->IsNull()) &&
- !op->status_.ok()) {
+ !op->status_.ok() &&
+ !op->status_.IsNotFound()) {
error = Exception::Error(String::New(op->status_.ToString().c_str()));
}

0 comments on commit 0f9f52d

Please sign in to comment.
Something went wrong with that request. Please try again.