File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ public struct MySQLDataDecoder {
38
38
guard let value = convertible. init ( mysqlData: data) else {
39
39
throw DecodingError . typeMismatch ( T . self, DecodingError . Context (
40
40
codingPath: [ ] ,
41
- debugDescription: " Could not convert to \( T . self) : \( data) " ,
41
+ debugDescription: " Could not convert MySQL data to \( T . self) : \( data) " ,
42
42
underlyingError: nil
43
43
) )
44
44
}
@@ -102,7 +102,7 @@ public struct MySQLDataDecoder {
102
102
guard let value = convertible. init ( mysqlData: self . decoder. data) else {
103
103
throw DecodingError . typeMismatch ( T . self, DecodingError . Context. init (
104
104
codingPath: self . codingPath,
105
- debugDescription: " Could not convert from MySQL data: \( T . self) "
105
+ debugDescription: " Could not convert MySQL data to \( T . self) : \( self . decoder . data ) "
106
106
) )
107
107
}
108
108
return value as! T
Original file line number Diff line number Diff line change @@ -149,7 +149,7 @@ public struct MySQLDataEncoder {
149
149
guard let data = convertible. mysqlData else {
150
150
throw EncodingError . invalidValue ( convertible, EncodingError . Context (
151
151
codingPath: self . codingPath,
152
- debugDescription: " Could not convert value of type \( T . self) "
152
+ debugDescription: " Could not encode \( T . self) to MySQL data: \( value ) "
153
153
) )
154
154
}
155
155
self . encoder. data = data
You can’t perform that action at this time.
0 commit comments