[Glacier] Convert ErrorCode into an Enum.

This commit is contained in:
Drew Galbraith 2023-11-02 21:55:12 -07:00
parent bcd9cf09bc
commit e66706d381
14 changed files with 77 additions and 66 deletions

View file

@ -29,7 +29,8 @@ class ResponseContext {
code,
};
written_ = true;
return ZReplyPortSend(reply_port_, sizeof(response), &response, 0, nullptr);
return static_cast<glcr::ErrorCode>(
ZReplyPortSend(reply_port_, sizeof(response), &response, 0, nullptr));
}
bool HasWritten() { return written_; }