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

engine: return slightly better credential errors #693

Merged
merged 6 commits into from
May 21, 2024

Conversation

josephjclark
Copy link
Collaborator

@josephjclark josephjclark commented May 14, 2024

Short Description

This PR slightly improves the error reporting when fetching a credential

Related issue

Related to OpenFn/lightning#1842 (comment)

Implementation Details

There are just two changes really:

  1. If Lightning returns an error message from fetch:credential, append that to the exception
  2. Only report one error per credential (ie, if the same credential errors on three steps, only report it once)

Lightning needs to return an error string for us to make any use of this.

A more detailed breakdown of the changes, including motivations (if not provided in the issue).

@josephjclark josephjclark merged commit 015b7f2 into main May 21, 2024
5 checks passed
@josephjclark josephjclark deleted the credential-errors branch May 21, 2024 09:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

1 participant