mirror of
https://github.com/LemmyNet/lemmy.git
synced 2024-11-10 11:09:46 +00:00
Make error type non exhaustive
This commit is contained in:
parent
278448f12d
commit
9829043f4e
1 changed files with 1 additions and 0 deletions
|
@ -9,6 +9,7 @@ use ts_rs::TS;
|
|||
#[cfg_attr(feature = "ts-rs", derive(TS))]
|
||||
#[cfg_attr(feature = "ts-rs", ts(export))]
|
||||
#[serde(tag = "error", content = "message", rename_all = "snake_case")]
|
||||
#[non_exhaustive]
|
||||
// TODO: order these based on the crate they belong to (utils, federation, db, api)
|
||||
pub enum LemmyErrorType {
|
||||
ReportReasonRequired,
|
||||
|
|
Loading…
Reference in a new issue