From abcaf8242e3d5ea200fab4a69e318c04b5597eb7 Mon Sep 17 00:00:00 2001 From: Shane Kilkelly Date: Thu, 13 Dec 2018 12:37:21 +0000 Subject: [PATCH] Include message along with error description lines --- .../ac/ic/wlgitbridge/git/handler/WLRepositoryResolver.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/services/git-bridge/src/main/java/uk/ac/ic/wlgitbridge/git/handler/WLRepositoryResolver.java b/services/git-bridge/src/main/java/uk/ac/ic/wlgitbridge/git/handler/WLRepositoryResolver.java index 505d0bd862..e0ee16b366 100644 --- a/services/git-bridge/src/main/java/uk/ac/ic/wlgitbridge/git/handler/WLRepositoryResolver.java +++ b/services/git-bridge/src/main/java/uk/ac/ic/wlgitbridge/git/handler/WLRepositoryResolver.java @@ -109,7 +109,10 @@ public class WLRepositoryResolver } catch (ForbiddenException e) { throw new ServiceNotAuthorizedException(); } 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) { Log.warn( "IOException when trying to open repo: " + projName,