OpenFn / kit

The bits & pieces that make OpenFn work. (diagrammer, cli, compiler, runtime, runtime manager, logger, etc.)
8 stars 12 forks source link

engine: return slightly better credential errors #693

Closed josephjclark closed 1 month ago

josephjclark commented 1 month ago

Short Description

This PR slightly improves the error reporting when fetching a credential

Related issue

Related to https://github.com/OpenFn/lightning/issues/1842#event-12798283992

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).