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
No known key found for this signature in database
GPG Key ID: A646B9CB645ECEA4
3 changed files with
3 additions and
5 deletions
modules/feature-management/src/Volo.Abp.FeatureManagement.Domain/Volo/Abp/FeatureManagement/FeatureManager.cs
modules/permission-management/src/Volo.Abp.PermissionManagement.Domain/Volo/Abp/PermissionManagement/PermissionManager.cs
modules/setting-management/src/Volo.Abp.SettingManagement.Domain/Volo/Abp/SettingManagement/SettingManager.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
@ -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}' ha s not compatible with the provider named '{providerName}'" ) ;
throw new ApplicationException ( $"The permission named '{permission.Name}' i s not compatible with the provider named '{providerName}'" ) ;
}
if ( ! permission . MultiTenancySide . HasFlag ( CurrentTenant . GetMultiTenancySide ( ) ) )
@ -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