Skip to content

Commit 01d8c78

Browse files
committed
Add failedToEncode case
1 parent b45ece0 commit 01d8c78

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Sources/GateEngine/GateEngine.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ public enum GateEngineError: Error, Equatable, Hashable, CustomStringConvertible
6464
case failedToLocate
6565
case failedToLoad(_ reason: String)
6666
case failedToDecode(_ reason: String)
67+
case failedToEncode(_ reason: String)
6768

6869
case scriptCompileError(_ reason: String)
6970
case scriptExecutionError(_ reason: String)
@@ -82,6 +83,8 @@ public enum GateEngineError: Error, Equatable, Hashable, CustomStringConvertible
8283
return "failedToLoad:\n\t" + reason.replacingOccurrences(of: "\n", with: "\n\t")
8384
case .failedToDecode(let reason):
8485
return "failedToDecode:\n\t" + reason.replacingOccurrences(of: "\n", with: "\n\t")
86+
case .failedToEncode(let reason):
87+
return "failedToEncode:\n\t" + reason.replacingOccurrences(of: "\n", with: "\n\t")
8588
case .scriptCompileError(let reason):
8689
return "scriptCompileError:\n\t" + reason.replacingOccurrences(of: "\n", with: "\n\t")
8790
case .scriptExecutionError(let reason):

0 commit comments

Comments
 (0)