mirror of
https://github.com/strapi/strapi.git
synced 2025-09-26 17:00:55 +00:00
change wording didnt to doesnt
This commit is contained in:
parent
7ef77c8481
commit
dd36d43b52
6
packages/core/upload/server/bootstrap.js
vendored
6
packages/core/upload/server/bootstrap.js
vendored
@ -50,18 +50,18 @@ const createProvider = config => {
|
||||
const providerInstance = provider.init(providerOptions);
|
||||
|
||||
if (!providerInstance.delete) {
|
||||
throw new Error(`The upload provider "${providerName}" didn't implement the delete method.`);
|
||||
throw new Error(`The upload provider "${providerName}" doesn't implement the delete method.`);
|
||||
}
|
||||
|
||||
if (!providerInstance.upload && !providerInstance.uploadStream) {
|
||||
throw new Error(
|
||||
`The upload provider "${providerName}" didn't implement the uploadStream nor the upload method.`
|
||||
`The upload provider "${providerName}" doesn't implement the uploadStream nor the upload method.`
|
||||
);
|
||||
}
|
||||
|
||||
if (!providerInstance.uploadStream) {
|
||||
process.emitWarning(
|
||||
`The upload provider "${providerName}" didn't implement the uploadStream function. Strapi will fallback on the upload method. Some performance issues may occur.`
|
||||
`The upload provider "${providerName}" doesn't implement the uploadStream function. Strapi will fallback on the upload method. Some performance issues may occur.`
|
||||
);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user