0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-09-29 12:18:54 +02:00

ircd::db: Cases for traps; minor cleanup.

This commit is contained in:
Jason Volk 2020-01-10 15:23:48 -08:00
parent c4c9bb2762
commit a95f448805

View file

@ -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
};
}
}