mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Handle GitUserException, with multiple lines of output
This commit is contained in:
parent
2f18feb136
commit
bf7be6071d
1 changed files with 1 additions and 3 deletions
|
@ -98,8 +98,6 @@ public class WLRepositoryResolver
|
||||||
} catch (ServiceNotEnabledException e) {
|
} catch (ServiceNotEnabledException e) {
|
||||||
cannot occur
|
cannot occur
|
||||||
*/
|
*/
|
||||||
} catch (MissingRepositoryException e) {
|
|
||||||
throw new ServiceMayNotContinueException(String.join("\n", e.getDescriptionLines()), e);
|
|
||||||
} catch (ServiceMayNotContinueException e) {
|
} catch (ServiceMayNotContinueException e) {
|
||||||
/* Such as FailedConnectionException */
|
/* Such as FailedConnectionException */
|
||||||
throw e;
|
throw e;
|
||||||
|
@ -112,7 +110,7 @@ public class WLRepositoryResolver
|
||||||
} catch (ForbiddenException e) {
|
} catch (ForbiddenException e) {
|
||||||
throw new ServiceNotAuthorizedException();
|
throw new ServiceNotAuthorizedException();
|
||||||
} catch (GitUserException e) {
|
} catch (GitUserException e) {
|
||||||
throw new ServiceMayNotContinueException(e.getMessage(), e);
|
throw new ServiceMayNotContinueException(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,
|
||||||
|
|
Loading…
Reference in a new issue