Skip to content

More informative messages when index out of bound #1121

Open

Description

@fzyzcjy

Hi thanks for the lib! When I made a bug and access index out of bound (e.g. arr.slice(s![a..b, c..d])), I see:

Slice begin 16744 is past end of axis of length 184

I would appreciate it if it could be a bit more informative, such as:

Slice begin 16744 is past end of axis of length 184 (array size: 1234x184; slice arg: 123x16744)

Then, programmers can debug the problem quicker - at least we know which axis goes wrong.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions