Skip to content

output errors during updates#58

Merged
jakecoffman merged 1 commit intomainfrom
jakecoffman/add-error-output
Feb 2, 2023
Merged

output errors during updates#58
jakecoffman merged 1 commit intomainfrom
jakecoffman/add-error-output

Conversation

@jakecoffman
Copy link
Member

When debugging issues with the CLI, if there's an error it can be frustrating as you will see a log message like ERROR <job_cli> Error during file fetching; aborting but it doesn't actually output what the error is. To capture it, you have to use -o to specify an output file and then examine the error that gets sent to the API.

With this change, it outputs the error like this:

update-job error: {dependency_file_not_found map[file-path:/missing/go.mod]}

@jakecoffman jakecoffman requested a review from a team as a code owner February 2, 2023 16:17
@jeffwidman
Copy link
Member

See also my suggestion here about adding a hint to the logs on what a user should do to see the full diff: #42 (comment)

@jakecoffman jakecoffman merged commit 6188573 into main Feb 2, 2023
@jakecoffman jakecoffman deleted the jakecoffman/add-error-output branch February 2, 2023 18:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants