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

better messaging for pull artifact command #3797

Merged
merged 1 commit into from
Apr 13, 2023
Merged

better messaging for pull artifact command #3797

merged 1 commit into from
Apr 13, 2023

Conversation

makkes
Copy link
Member

@makkes makkes commented Apr 13, 2023

  • When there's an error stat'ing the output directory flux now prints
    the error:

    Before:

    ✗ invalid output path ./ro-dir/foo
    

    After:

    ✗ invalid output path "./ro-dir/foo": stat ./ro-dir/foo: permission denied
    
  • When no output directory is provided flux now explicitly says so in
    the error:

    Before:

    ✗ invalid output path
    

    After:

    ✗ output path cannot be empty
    

- When there's an error stat'ing the output directory flux now prints
  the error:

  Before:
  ```
  ✗ invalid output path ./ro-dir/foo
  ```

  After:
  ```
  ✗ invalid output path "./ro-dir/foo": stat ./ro-dir/foo: permission denied
  ```
- When no output directory is provided flux now explicitly says so in
  the error:

  Before:
  ```
  ✗ invalid output path
  ```

  After:
  ```
  ✗ output path cannot be empty
  ```

Signed-off-by: Max Jonas Werner <mail@makk.es>
@makkes makkes added area/UX area/oci OCI related issues and pull requests labels Apr 13, 2023
Copy link
Member

@stefanprodan stefanprodan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Thanks @makkes

@makkes makkes added enhancement New feature or request and removed enhancement New feature or request labels Apr 13, 2023
@makkes makkes merged commit cb8387c into main Apr 13, 2023
8 checks passed
@makkes makkes deleted the improve-messaging branch April 13, 2023 11:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/oci OCI related issues and pull requests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants