mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
⚡ Minor improvements to Wordpress-Node
This commit is contained in:
parent
615a44726d
commit
7c54cf6ac2
|
@ -41,7 +41,7 @@ export async function wordpressApiRequest(this: IExecuteFunctions | IExecuteSing
|
|||
return await this.helpers.request!(options);
|
||||
} catch (error) {
|
||||
let errorMessage = error.message;
|
||||
if (error.response.body) {
|
||||
if (error.response && error.response.body) {
|
||||
errorMessage = error.response.body.message || error.response.body.Message || error.message;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue