diff --git a/netd/NetdUpdatable.cpp b/netd/NetdUpdatable.cpp index 8b9e5a759c589c74de9e3bd4cc6de40a0f7f9f53..3b15916398be151b2fbc6d78a0f7b3ca26af1010 100644 --- a/netd/NetdUpdatable.cpp +++ b/netd/NetdUpdatable.cpp @@ -31,8 +31,8 @@ int libnetd_updatable_init(const char* cg2_path) { android::netdutils::Status ret = sBpfHandler.init(cg2_path); if (!android::netdutils::isOk(ret)) { - LOG(ERROR) << __func__ << ": Failed. " << ret.code() << " " << ret.msg(); - return -ret.code(); + LOG(ERROR) << __func__ << ": Failed: (" << ret.code() << ") " << ret.msg(); + abort(); } return 0; }