Skip to content

Please don't panic! #692

Description

@dagit

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions