Skip to content

Commit 6991739

Browse files
committed
doc: 更新提示信息
1 parent 54b8780 commit 6991739

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/BootstrapBlazor/Services/BootstrapServiceBase.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,11 @@ protected async Task Invoke(TOption option, ComponentBase? component = null)
2929
if (callback == null)
3030
{
3131
#if NET8_0_OR_GREATER
32-
throw new InvalidOperationException($"{GetType().Name} not registered. refer doc https://www.blazor.zone/install-webapp step 7 for BootstrapBlazorRoot");
32+
var message = $"{GetType().Name} not registered. refer doc https://www.blazor.zone/install-webapp step 7 for BootstrapBlazorRoot; 未找到 BootstrapBlazorRoot 组件,无法完成当前操作,请根据 https://www.blazor.zone/install-webapp 第七步骤指引完成操作";
3333
#else
34-
throw new InvalidOperationException($"{GetType().Name} not registered. refer doc https://www.blazor.zone/install-server step 7 for BootstrapBlazorRoot");
34+
var message = $"{GetType().Name} not registered. refer doc https://www.blazor.zone/install-server step 7 for BootstrapBlazorRoot; 未找到 BootstrapBlazorRoot 组件,无法完成当前操作,请根据 https://www.blazor.zone/install-server 第七步骤指引完成操作";
3535
#endif
36+
throw new InvalidOperationException(message);
3637
}
3738
await callback(option);
3839
}

0 commit comments

Comments
 (0)