Small Gumroad-Node improvement

This commit is contained in:
Jan Oberhauser 2020-01-16 18:28:11 -06:00
parent f03936b468
commit eb4c986185

View file

@ -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);
}
}