Print error "File not found" if a .json file doesn't exist #270

Closed
opened 2025-12-28 17:36:48 +00:00 by sami · 0 comments
Owner

Originally created by @masterSplinter01 on GitHub (Jun 27, 2022).

Originally assigned to: @masterSplinter01 on GitHub.

If not existing filepath is set, authmate tries to parse it anyway and prints the following error:

$ authmate issue-secret --container-policy police.json
couldn't parse container policy: invalid character 's' looking for beginning of value

It looks confusing because that's the error of a filepath not content of .json.

Originally created by @masterSplinter01 on GitHub (Jun 27, 2022). Originally assigned to: @masterSplinter01 on GitHub. If not existing filepath is set, authmate tries to parse it anyway and prints the following error: ``` $ authmate issue-secret --container-policy police.json couldn't parse container policy: invalid character 's' looking for beginning of value ``` It looks confusing because that's the error of a filepath not content of `.json`.
sami 2025-12-28 17:36:48 +00:00
  • closed this issue
  • added the
    auth-mate
    label
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
nspcc-dev/neofs-s3-gw#270
No description provided.