Skip to content

Commit

Permalink
Merge branch 'che-22488' of github.com:eclipse-che/che-server into ch…
Browse files Browse the repository at this point in the history
…e-22488
  • Loading branch information
vinokurig committed Sep 20, 2023
2 parents 7c9dd62 + 3523728 commit caa1272
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ public String fetchContent(String fileURL) throws IOException, DevfileException
requestURL.substring(requestURL.indexOf(split[6]) + split[6].length() + 1),
token.getToken());
} catch (UnknownScmProviderException e) {
return fetchContentWithoutToken(requestURL, e);
return fetchContentWithoutToken(requestURL);
} catch (ScmCommunicationException e) {
return toIOException(fileURL, e);
} catch (ScmUnauthorizedException
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ private String fetchContent(
return urlFetcher.fetch(requestURL, authorization);
}
} catch (UnknownScmProviderException e) {
return fetchContentWithoutToken(requestURL, e);
return fetchContentWithoutToken(requestURL);
} catch (ScmCommunicationException e) {
return toIOException(fileURL, e);
} catch (ScmUnauthorizedException
Expand All @@ -102,7 +102,7 @@ private String fetchContent(
}
}

protected String fetchContentWithoutToken(String requestURL, UnknownScmProviderException e)
protected String fetchContentWithoutToken(String requestURL)
throws DevfileException, IOException {
// we don't have any provider matching this SCM provider
// so try without secrets being configured
Expand All @@ -123,7 +123,7 @@ protected String fetchContentWithoutToken(String requestURL, UnknownScmProviderE
}
}
throw new DevfileException(
String.format("%s: %s", e.getMessage(), exception.getMessage()), exception);
"Could not reach devfile at " + "`" + exception.getMessage() + "`", exception);
}
}

Expand Down

0 comments on commit caa1272

Please sign in to comment.