Skip to content
Snippets Groups Projects
Commit ff845a64 authored by Maciej Żenczykowski's avatar Maciej Żenczykowski
Browse files

netdupdatable: add back abort() on init() fail


Bug: 317469218
Test: TreeHugger
Signed-off-by: default avatarMaciej Żenczykowski <maze@google.com>
Change-Id: I76a4082bd64434f109d64b5513c5608f92bea494
parent 0db97a6f
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment