@@ -53,7 +53,7 @@ extension Color {
5353
5454public enum GateEngineError : Error , Equatable , Hashable , CustomStringConvertible {
5555 /// An error to represent any kind of error
56- case custom( _ errorName : String , _ description : String )
56+ case custom( category : String , message : String )
5757
5858 case failedToLocate( resource: String , _ reason: String ? )
5959 case failedToLoad( resource: String , _ reason: String ? )
@@ -69,8 +69,8 @@ public enum GateEngineError: Error, Equatable, Hashable, CustomStringConvertible
6969
7070 public var description : String {
7171 switch self {
72- case . custom( let errorName , let reason ) :
73- return " \( errorName ) : \n \t " + reason . replacingOccurrences ( of: " \n " , with: " \n \t " )
72+ case . custom( let category , let message ) :
73+ return " \( category ) : \n \t " + message . replacingOccurrences ( of: " \n " , with: " \n \t " )
7474
7575 case . failedToLocate( let resource, let reason) :
7676 var error = " FailedToLocate: \( resource) "
@@ -138,7 +138,7 @@ public enum GateEngineError: Error, Equatable, Hashable, CustomStringConvertible
138138
139139extension GateEngineError : ExpressibleByStringLiteral {
140140 public init ( stringLiteral value: StringLiteralType ) {
141- self = . custom( " error " , value)
141+ self = . custom( category : " error " , message : value)
142142 }
143143}
144144
0 commit comments