mirror of
https://github.com/strapi/strapi.git
synced 2025-09-26 17:00:55 +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',
|
||||
details: {
|
||||
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