mirror of
https://github.com/strapi/strapi.git
synced 2025-09-28 01:40:11 +00:00
send more details in error message
This commit is contained in:
parent
944ddfb190
commit
bf6c00cadd
@ -189,11 +189,18 @@ class RemoteStrapiDestinationProvider implements IDestinationProvider {
|
|||||||
check: 'auth.token',
|
check: 'auth.token',
|
||||||
details: {
|
details: {
|
||||||
token: auth?.token,
|
token: auth?.token,
|
||||||
|
error: err.message,
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
reject(new ProviderTransferError('Error connecting to server'));
|
reject(
|
||||||
|
new ProviderTransferError('Error connecting to server', {
|
||||||
|
details: {
|
||||||
|
error: err.message,
|
||||||
|
},
|
||||||
|
})
|
||||||
|
);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user