Add warp config generator
This commit is contained in:
@@ -14,6 +14,9 @@ sealed class ConfigOptionFailure with _$ConfigOptionFailure, Failure {
|
||||
StackTrace? stackTrace,
|
||||
]) = ConfigOptionUnexpectedFailure;
|
||||
|
||||
@With<ExpectedFailure>()
|
||||
const factory ConfigOptionFailure.missingWarp() = MissingWarpConfigFailure;
|
||||
|
||||
@override
|
||||
({String type, String? message}) present(TranslationsEn t) {
|
||||
return switch (this) {
|
||||
@@ -21,6 +24,10 @@ sealed class ConfigOptionFailure with _$ConfigOptionFailure, Failure {
|
||||
type: t.failure.unexpected,
|
||||
message: null,
|
||||
),
|
||||
MissingWarpConfigFailure() => (
|
||||
type: t.settings.config.missingWarpConfig,
|
||||
message: null,
|
||||
),
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user