mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
⚡ Small Gumroad-Node improvement
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user