Open
Description
I was looking through the operations for Texture
and I noticed at least one call to panic!
.
I'd like to advocate that as a library, it's probably always preferable to percolate errors like that to the caller, even if it represents a serious error. It would create another breaking API change, but I would certainly prefer to deal with that error at the application level rather than have my application abort. If it were returned as a Result
, my application may still need to terminate ASAP but I would have the opportunity to exit gracefully with an additional context for the user, possibly saving data, etc.
Thanks.