fatalError when body is an invalid image
nsoojin opened this issue · 4 comments
nsoojin commented
Hi,
Right now app crashes due to the fatal error in the initializer of ImageResult enum when the response body cannot be casted to Image.
But I think this should not be a fatal error because it is a problem from backend and developers can recover from and handle such cases.
So rather than fatal-erroring, how about make it a failure (parsing error perhaps?).
If you think the same way, I'll make a PR
3lvis commented
nsoojin commented
wow that was fast!
ok thanks :)
looking forward to contribute!
3lvis commented