diff --git a/src/node_watchdog.cc b/src/node_watchdog.cc index 756ba64696a913..01b39123be5e7c 100644 --- a/src/node_watchdog.cc +++ b/src/node_watchdog.cc @@ -13,7 +13,10 @@ Watchdog::Watchdog(v8::Isolate* isolate, uint64_t ms) : isolate_(isolate), loop_ = new uv_loop_t; CHECK(loop_); rc = uv_loop_init(loop_); - CHECK_EQ(0, rc); + if (rc != 0) { + FatalError("node::Watchdog::Watchdog()", + "Failed to initialize uv loop."); + } rc = uv_async_init(loop_, &async_, &Watchdog::Async); CHECK_EQ(0, rc);