Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Relic CLI misleading errors #40

Open
ModernMAK opened this issue Oct 15, 2023 · 0 comments
Open

Relic CLI misleading errors #40

ModernMAK opened this issue Oct 15, 2023 · 0 comments
Labels
Command Line Interface Relates to the CLI implementation SGA Relates to `Relic-Tool-SGA`

Comments

@ModernMAK
Copy link
Member

ModernMAK commented Oct 15, 2023

When trying to open a directory as a file permission error is raised instead of a clearer exception.

E.G. relic sga pack v2 "mysga.sga" "mydir" "myconfig.json" will raise PermissionError: [Errno 13] Permission denied: 'mydir' but fails to explain that the issue is because 'mydir' is not a file.

Likewise, 'mysga.sga' should specify that the path is not a directory IF it exists, or that it does not exist.

@ModernMAK ModernMAK added SGA Relates to `Relic-Tool-SGA` Command Line Interface Relates to the CLI implementation labels Oct 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Command Line Interface Relates to the CLI implementation SGA Relates to `Relic-Tool-SGA`
Projects
None yet
Development

No branches or pull requests

1 participant