send more details in error message

This commit is contained in:
Bassel 2023-03-02 14:56:20 +02:00
parent 944ddfb190
commit bf6c00cadd

View File

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