File tree Expand file tree Collapse file tree 1 file changed +2
-10
lines changed
Expand file tree Collapse file tree 1 file changed +2
-10
lines changed Original file line number Diff line number Diff line change @@ -80,11 +80,7 @@ class HybridImageFactory: HybridImageFactorySpec {
8080 . resume ( returning: HybridImage ( uiImage: image) )
8181 } else {
8282 continuation. resume (
83- throwing: NSError (
84- domain: " TurboImageView " ,
85- code: 500 ,
86- userInfo: [ NSLocalizedDescriptionKey: " Failed to load or convert image " ]
87- )
83+ throwing: RuntimeError . error ( withMessage: " Failed to load or convert image " )
8884 )
8985 }
9086 }
@@ -113,11 +109,7 @@ class HybridImageFactory: HybridImageFactorySpec {
113109 continuation. resume ( returning: HybridImage ( uiImage: uiImage) )
114110 } else {
115111 continuation. resume (
116- throwing: NSError (
117- domain: " TurboImageView " ,
118- code: 500 ,
119- userInfo: [ NSLocalizedDescriptionKey: " Failed to load or convert image " ]
120- )
112+ throwing: RuntimeError . error ( withMessage: " Failed to load or convert image " )
121113 )
122114 }
123115 }
You can’t perform that action at this time.
0 commit comments