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,