Skip to content

Improve error messaging for invalid matrix entry #1327

@SimonBradley1993

Description

@SimonBradley1993

I'm currently investigating an issue with some requests being sent to Vroom coming back with Invalid matrix entry. I'd like to improve the error message here to include the matrix entry that caused this issue. The check is being performed here :

      if (!mi[j].IsUint()) {
        throw InputException("Invalid matrix entry.");
      }
      matrix[i][j] = mi[j].GetUint();
    }
  }

And I'd like to change this to :

      if (!mi[j].IsUint()) {
        throw InputException("Invalid matrix entry {}.", mi[j]);
      }
      matrix[i][j] = mi[j].GetUint();
    }
  }

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