luocooong commented on a change in pull request #2127:
URL: https://github.com/apache/drill/pull/2127#discussion_r546341298
##########
File path:
exec/java-exec/src/main/java/org/apache/drill/exec/store/StoragePluginRegistryImpl.java
##########
@@ -420,9 +420,13 @@ public void validatedPut(String name, StoragePluginConfig
config)
PluginHandle entry = restoreFromEphemeral(name, config);
try {
entry.plugin();
+ } catch (UserException e) {
+ // Provide helpful error messages.
+ throw new PluginException(e.getOriginalMessage(), e);
} catch (Exception e) {
throw new PluginException(String.format(
- "Invalid plugin config for '%s'", name), e);
+ "Invalid plugin config for '%s', "
+ + "Please switch to Logs panel from the UI then check the log.",
name), e);
Review comment:
@cgivre
`/log/sqlline.log/content` does not contain the error of reconfig plugins.
`/log/drillbit.log/content` is the address. However, we need to consider the
way to open this page at first, such as open a new tab on brower? or redirect
to this page directly (unfriendly).
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]