Actions
Idea #21506
closedImprove error message when arv-mount --filters file is bad JSON
Start date:
Due date:
Story points:
-
Description
arvados.commands._util.validate_filters raises a ValueError that gives more detail about exactly what's wrong with the filters. Figuring out a way to include that information would be better than this:
$ arv-mount --filters /dev/null $XDG_RUNTIME_DIR/keep
usage: arv-mount [-h] [--retries RETRIES] [--version] [--allow-other] [--subtype STRING]
[--all | --custom | --home | --shared | --by-tag | --by-id | --by-pdh | --project UUID | --collection UUID_or_PDH]
[--mount-by-pdh PATH] [--mount-by-id PATH] [--mount-by-tag PATH] [--mount-home PATH] [--mount-shared PATH]
[--mount-tmp PATH] [--debug] [--logfile LOGFILE] [--foreground] [--encoding ENCODING] [--file-cache FILE_CACHE]
[--directory-cache DIRECTORY_CACHE] [--ram-cache | --disk-cache] [--disk-cache-dir DISK_CACHE_DIR]
[--disable-event-listening] [--read-only] [--read-write] [--storage-classes CLASSES]
[--crunchstat-interval CRUNCHSTAT_INTERVAL] [--unmount | --unmount-all | --replace]
[--unmount-timeout UNMOUNT_TIMEOUT] [--filters FILTERS] [--exec ...]
mountpoint
arv-mount: error: argument --filters: invalid <arvados.commands._util.JSONArgument object at 0x7fd229d601c0> value: '/dev/null'
Updated by Brett Smith 6 days ago
- Related to Feature #23330: arvcli has subcommands for Arvados API calls added
Updated by Brett Smith 6 days ago
- Target version changed from Future to Development 2026-03-18
- Assigned To set to Zoë Ma
- Status changed from New to Resolved
This was done in #23330:
⟩ arv-mount --filters /dev/null $XDG_RUNTIME_DIR/keep usage: arv-mount [-h] [--retries RETRIES] [--version] [… more…] arv-mount: error: argument --filters: Content of file '/dev/null' is not valid JSON: Expecting value: line 1 column 1 (char 0)
Actions