[Yunq] Return status from client calls.
This commit is contained in:
parent
700f3f94cb
commit
c209925a3c
25 changed files with 102 additions and 112 deletions
|
|
@ -15,6 +15,14 @@ void check(uint64_t code) {
|
|||
(void)ZProcessExit(code);
|
||||
}
|
||||
|
||||
void check(const glcr::Status& status) {
|
||||
if (status.ok()) {
|
||||
return;
|
||||
}
|
||||
dbgln("Crash: {}", status.message());
|
||||
(void)ZProcessExit(status.code());
|
||||
}
|
||||
|
||||
void crash(const char* str, uint64_t code) {
|
||||
dbgln(str);
|
||||
(void)ZProcessExit(code);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue