Include message along with error description lines

This commit is contained in:
Shane Kilkelly 2018-12-13 12:37:21 +00:00
parent a766482a00
commit abcaf8242e

View file

@ -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,