Skip to content

improved error message #3

@nsheff

Description

@nsheff

If I'm a naive user and just testing things out, my first inclination, without reading docs, is to do somethign like this:

pip install pipestat
pipestat report -i myval -v 123

The error I get is this:

pipestat report -i myval -v 123
Traceback (most recent call last):
  File "/home/nsheff/.local/bin/pipestat", line 8, in <module>
    sys.exit(main())
  File "/home/nsheff/.local/lib/python3.8/site-packages/pipestat/cli.py", line 28, in main
    psm = PipestatManager(
  File "/home/nsheff/.local/lib/python3.8/site-packages/pipestat/pipestat.py", line 142, in __init__
    self[NAME_KEY] = _select_value(
  File "/home/nsheff/.local/lib/python3.8/site-packages/pipestat/pipestat.py", line 112, in _select_value
    raise PipestatError(
pipestat.exceptions.PipestatError: Value for the required 'namespace' argument could not be determined. Provide it in the config or pass to the object constructor.

I think it should instead say something like "No config file provided. you must provide a pipestat config file" or something.

Metadata

Metadata

Assignees

Type

No type

Projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions