Skip to content

Panic messages could be more helpful #5

Description

@grothesque

(For sure the following is luxury, but I'm noting it here nevertheless.)

Currently, panic messages are very terse. Debugging often requires inserting some dbg! invocations. For example mapping.rs has:

assert!(index < self.rank(), "invalid dimension");

I think that it would be helpful if the above was replaced by, for example,

assert!(index < self.rank(), "Expecting a dimension smaller than {}, but got {}.", self.rank(), index);

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

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions