mirror of
https://github.com/matrix-construct/construct
synced 2024-11-17 07:20:55 +01:00
ircd::db: Cases for traps; minor cleanup.
This commit is contained in:
parent
c4c9bb2762
commit
a95f448805
1 changed files with 12 additions and 1 deletions
13
ircd/db.cc
13
ircd/db.cc
|
@ -7523,8 +7523,19 @@ ircd::db::throw_on_error::throw_on_error(const rocksdb::Status &status)
|
|||
case Status::kNotFound:
|
||||
throw not_found{};
|
||||
|
||||
#ifdef RB_DEBUG
|
||||
case Status::kCorruption:
|
||||
case Status::kNotSupported:
|
||||
case Status::kInvalidArgument:
|
||||
debugtrap();
|
||||
[[fallthrough]];
|
||||
#endif
|
||||
|
||||
default:
|
||||
throw error{status};
|
||||
throw error
|
||||
{
|
||||
status
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue