Browse Source

Include message along with error description lines

Shane Kilkelly 7 years ago
parent
commit
abcaf8242e

+ 4 - 1
services/git-bridge/src/main/java/uk/ac/ic/wlgitbridge/git/handler/WLRepositoryResolver.java

@@ -109,7 +109,10 @@ public class WLRepositoryResolver
         } catch (ForbiddenException e) {
         } catch (ForbiddenException e) {
             throw new ServiceNotAuthorizedException();
             throw new ServiceNotAuthorizedException();
         } catch (GitUserException e) {
         } catch (GitUserException e) {
-            throw new ServiceMayNotContinueException(String.join("\n", e.getDescriptionLines()), e);
+            throw new ServiceMayNotContinueException(
+                e.getMessage() + "\n" +
+                    String.join("\n", e.getDescriptionLines()),
+                e);
         } catch (IOException e) {
         } catch (IOException e) {
             Log.warn(
             Log.warn(
                     "IOException when trying to open repo: " + projName,
                     "IOException when trying to open repo: " + projName,