ihuzenko commented on a change in pull request #1692: DRILL-6562: Plugin
Management improvements
URL: https://github.com/apache/drill/pull/1692#discussion_r266443844
##########
File path:
exec/java-exec/src/main/java/org/apache/drill/exec/server/rest/StorageResources.java
##########
@@ -174,32 +202,34 @@ public JsonResult
createOrUpdatePluginJSON(PluginConfigWrapper plugin) {
return message("success");
} catch (ExecutionSetupException e) {
logger.error("Unable to create/ update plugin: " + plugin.getName(), e);
- return message("Error while creating/ updating storage : " +
(e.getCause() != null ? e.getCause().getMessage() : e.getMessage()));
+ return message("Error while creating / updating storage : " +
(e.getCause() != null ?
Review comment:
```suggestion
return message("Error while creating / updating storage : %s",
e.getCause() == null ? e.getMessage() : e.getCause().getMessage();
```
----------------------------------------------------------------
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]
With regards,
Apache Git Services