Browse Source

Fix grammar in not-compatible exception message

Replace 'has not compatible with' with 'is not compatible with' in FeatureManager, SettingManager and PermissionManager (the latter is the original phrasing this PR initially mirrored).
pull/25462/head
maliming 4 months ago
parent
commit
957e0c92c1
No known key found for this signature in database GPG Key ID: A646B9CB645ECEA4
  1. 3
      modules/feature-management/src/Volo.Abp.FeatureManagement.Domain/Volo/Abp/FeatureManagement/FeatureManager.cs
  2. 2
      modules/permission-management/src/Volo.Abp.PermissionManagement.Domain/Volo/Abp/PermissionManagement/PermissionManager.cs
  3. 3
      modules/setting-management/src/Volo.Abp.SettingManagement.Domain/Volo/Abp/SettingManagement/SettingManager.cs

3
modules/feature-management/src/Volo.Abp.FeatureManagement.Domain/Volo/Abp/FeatureManagement/FeatureManager.cs

@ -148,8 +148,7 @@ public class FeatureManager : IFeatureManager, ISingletonDependency
if (feature.AllowedProviders.Any() && !feature.AllowedProviders.Contains(providerName))
{
throw new AbpException(
$"The feature named '{name}' has not compatible with the provider named '{providerName}'");
throw new AbpException($"The feature named '{name}' is not compatible with the provider named '{providerName}'");
}
var providers = Enumerable

2
modules/permission-management/src/Volo.Abp.PermissionManagement.Domain/Volo/Abp/PermissionManagement/PermissionManager.cs

@ -144,7 +144,7 @@ public class PermissionManager : IPermissionManager, ISingletonDependency
if (permission.Providers.Any() && !permission.Providers.Contains(providerName))
{
//TODO: BusinessException
throw new ApplicationException($"The permission named '{permission.Name}' has not compatible with the provider named '{providerName}'");
throw new ApplicationException($"The permission named '{permission.Name}' is not compatible with the provider named '{providerName}'");
}
if (!permission.MultiTenancySide.HasFlag(CurrentTenant.GetMultiTenancySide()))

3
modules/setting-management/src/Volo.Abp.SettingManagement.Domain/Volo/Abp/SettingManagement/SettingManager.cs

@ -129,8 +129,7 @@ public class SettingManager : ISettingManager, ISingletonDependency
if (setting.Providers.Any() && !setting.Providers.Contains(providerName))
{
throw new AbpException(
$"The setting named '{name}' has not compatible with the provider named '{providerName}'");
throw new AbpException($"The setting named '{name}' is not compatible with the provider named '{providerName}'");
}
var providers = Enumerable

Loading…
Cancel
Save