Improve error message

This commit is contained in:
Christian Capeans 2023-04-28 13:19:14 +02:00
parent fff1cd3933
commit 1b52da5cd7

View File

@ -162,7 +162,9 @@ class LocalStrapiDestinationProvider implements IDestinationProvider {
// Create a .gitkeep file to ensure the directory is not empty
await fse.outputFile(path.join(assetsDirectory, '.gitkeep'), '');
} catch (err) {
throw new ProviderTransferError('The backup folder for the assets could not be created.');
throw new ProviderTransferError(
'The backup folder for the assets could not be created inside the public directory.'
);
}
return new Writable({