Skip to content

Give better error message on non-existant instrument session #1507

@DominicOram

Description

@DominicOram

If I accidentally give a non-existent instrument session when submitting a plan to BlueAPI I get an error like:

RuntimeError: Numtracker error: [{'message': 'Authentication failed', 'locations': [{'line': 3, 'column': 5}], 'path': ['scan']}]

this doesn't really give me any hints to why the authentication has failed.

Acceptance Criteria

  • A failure on the above gives a more useful response like "Visit XXX not found"

Metadata

Metadata

Assignees

No one assigned

    Labels

    externalIntegrations with the outside worldonboardingGood for newcomers

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions