|
@@ -15,7 +15,7 @@ public class StoragePluginContext {
|
|
|
|
|
|
public static void addStoragePlugin(StoragePlugin storagePlugin) {
|
|
|
if (mapper.containsKey(storagePlugin.getName())) {
|
|
|
- throw new ThirdpartyException("消息提供方:{}不存在", storagePlugin.getName());
|
|
|
+ throw new ThirdpartyException("存储插件:{}已存在", storagePlugin.getName());
|
|
|
}
|
|
|
mapper.put(storagePlugin.getName(), storagePlugin);
|
|
|
}
|
|
@@ -29,7 +29,7 @@ public class StoragePluginContext {
|
|
|
StoragePlugin storagePlugin = mapper.get(storagePluginName);
|
|
|
|
|
|
if (storagePlugin == null) {
|
|
|
- throw new ThirdpartyException("消息提供方:{}不存在", storagePluginName);
|
|
|
+ throw new ThirdpartyException("存储插件:{}不存在", storagePluginName);
|
|
|
}
|
|
|
|
|
|
return storagePlugin;
|