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