Make error type non exhaustive

error-expose
SleeplessOne1917 2024-02-09 18:07:15 -05:00
parent 278448f12d
commit 9829043f4e
1 changed files with 1 additions and 0 deletions

View File

@ -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,