Skip to content

Commit c83aeeb

Browse files
authored
fix: Add description for ClientError (#2)
1 parent 53810ed commit c83aeeb

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
//
2+
// This file is part of prose-app-macos.
3+
// Copyright (c) 2023 Prose Foundation
4+
//
5+
6+
import Foundation
7+
8+
extension ClientError: LocalizedError {
9+
/// - Important: ``ClientError`` is not localized.
10+
public var errorDescription: String? {
11+
switch self {
12+
case .Generic(let msg):
13+
return msg
14+
}
15+
}
16+
}

0 commit comments

Comments
 (0)