Skip to content

Commit

Permalink
Merge pull request #11118 from abpframework/liangshiwei/blob
Browse files Browse the repository at this point in the history
Throw an exception when no BLOB provider used
  • Loading branch information
maliming authored Dec 29, 2021
2 parents 9615384 + 5ef952a commit b3dfef9
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,12 @@ public virtual IBlobProvider Get([NotNull] string containerName)

if (!BlobProviders.Any())
{
throw new AbpException("No BLOB Storage provider was registered! At least one provider must be registered to be able to use the Blog Storing System.");
throw new AbpException("No BLOB Storage provider was registered! At least one provider must be registered to be able to use the BLOB Storing System.");
}

if (configuration.ProviderType == null)
{
throw new AbpException("No BLOB Storage provider was used! At least one provider must be configured to be able to use the BLOB Storing System.");
}

foreach (var provider in BlobProviders)
Expand Down

0 comments on commit b3dfef9

Please sign in to comment.