Update logging

This commit is contained in:
problematicconsumer
2023-08-22 01:02:33 +03:30
parent f6d606a068
commit 03ae15010a
4 changed files with 26 additions and 7 deletions

View File

@@ -23,7 +23,9 @@ sealed class ProfileFailure with _$ProfileFailure, Failure {
return switch (this) {
ProfileUnexpectedFailure() => t.failure.profiles.unexpected,
ProfileNotFoundFailure() => t.failure.profiles.notFound,
ProfileInvalidConfigFailure() => t.failure.profiles.invalidConfig,
ProfileInvalidConfigFailure(:final message) =>
t.failure.profiles.invalidConfig +
(message == null ? "" : ": $message"),
};
}
}