mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-31 12:51:35 +02:00
Handle GitUserException, with multiple lines of output
This commit is contained in:
@@ -98,8 +98,6 @@ public class WLRepositoryResolver
|
||||
} catch (ServiceNotEnabledException e) {
|
||||
cannot occur
|
||||
*/
|
||||
} catch (MissingRepositoryException e) {
|
||||
throw new ServiceMayNotContinueException(String.join("\n", e.getDescriptionLines()), e);
|
||||
} catch (ServiceMayNotContinueException e) {
|
||||
/* Such as FailedConnectionException */
|
||||
throw e;
|
||||
@@ -112,7 +110,7 @@ public class WLRepositoryResolver
|
||||
} catch (ForbiddenException e) {
|
||||
throw new ServiceNotAuthorizedException();
|
||||
} catch (GitUserException e) {
|
||||
throw new ServiceMayNotContinueException(e.getMessage(), e);
|
||||
throw new ServiceMayNotContinueException(String.join("\n", e.getDescriptionLines()), e);
|
||||
} catch (IOException e) {
|
||||
Log.warn(
|
||||
"IOException when trying to open repo: " + projName,
|
||||
|
||||
Reference in New Issue
Block a user