From 9f848c9e336a01a6fa8b207e2d1b9ae5a6b06dcc Mon Sep 17 00:00:00 2001 From: Sebastian Sdorra Date: Thu, 23 May 2013 14:10:01 +0200 Subject: [PATCH] improve error messages --- .../main/java/sonia/scm/plugin/AetherPluginHandler.java | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/scm-webapp/src/main/java/sonia/scm/plugin/AetherPluginHandler.java b/scm-webapp/src/main/java/sonia/scm/plugin/AetherPluginHandler.java index fbbb20afcb..caa74f6935 100644 --- a/scm-webapp/src/main/java/sonia/scm/plugin/AetherPluginHandler.java +++ b/scm-webapp/src/main/java/sonia/scm/plugin/AetherPluginHandler.java @@ -120,7 +120,8 @@ public class AetherPluginHandler } catch (JAXBException ex) { - throw new ConfigurationException(ex); + throw new ConfigurationException( + "could not create jaxb context for classpath file", ex); } classpathFile = new File(localRepositoryDirectory, @@ -135,7 +136,7 @@ public class AetherPluginHandler } catch (JAXBException ex) { - logger.error(ex.getMessage(), ex); + logger.error("could not read classpath file", ex); } } @@ -294,7 +295,8 @@ public class AetherPluginHandler } catch (Exception ex) { - throw new PluginException(ex); + throw new PluginException( + "could not collect dependencies or store classpath file", ex); } }