mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-10 14:44:05 -08:00
⚡ Small Gumroad-Node improvement
This commit is contained in:
parent
f03936b468
commit
eb4c986185
|
@ -30,10 +30,6 @@ export async function gumroadApiRequest(this: IHookFunctions | IExecuteFunctions
|
|||
try {
|
||||
return await this.helpers.request!(options);
|
||||
} catch (error) {
|
||||
let errorMessage = error;
|
||||
if (!error.success) {
|
||||
errorMessage.message;
|
||||
}
|
||||
throw new Error('Gumroad Error: ' + errorMessage);
|
||||
throw new Error('Gumroad Error: ' + error.message);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue