MCPcopy Create free account
hub / github.com/msgbyte/tailchat / showPluginLoadError

Function showPluginLoadError

client/web/src/plugin/showPluginLoadError.tsx:5–18  ·  view source on GitHub ↗
(loadErrorPluginNames: string[])

Source from the content-addressed store, hash-verified

3import { t } from 'tailchat-shared';
4
5export function showPluginLoadError(loadErrorPluginNames: string[]) {
6 notification.warn({
7 message: (
8 <div>
9 <p>{t('插件加载失败')}:</p>
10
11 {loadErrorPluginNames.map((name) => (
12 <p key={name}>- {name}</p>
13 ))}
14 </div>
15 ),
16 duration: 2,
17 });
18}

Callers 1

PluginManagerClass · 0.90

Calls 2

warnMethod · 0.80
tFunction · 0.50

Tested by

no test coverage detected