Update prefix message in 'fetchContentWithoutToken'
parent
69333d5f70
commit
ca0086ce9d
|
|
@ -61,7 +61,7 @@ class BitbucketAuthorizingFileContentProvider extends AuthorizingFileContentProv
|
|||
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
|
||||
|
|
|
|||
|
|
@ -92,7 +92,7 @@ public class AuthorizingFileContentProvider<T extends RemoteFactoryUrl>
|
|||
return urlFetcher.fetch(requestURL, authorization);
|
||||
}
|
||||
} catch (UnknownScmProviderException e) {
|
||||
return fetchContentWithoutToken(requestURL, e);
|
||||
return fetchContentWithoutToken(requestURL);
|
||||
} catch (ScmCommunicationException e) {
|
||||
return toIOException(fileURL, e);
|
||||
} catch (ScmUnauthorizedException
|
||||
|
|
@ -102,7 +102,7 @@ public class AuthorizingFileContentProvider<T extends RemoteFactoryUrl>
|
|||
}
|
||||
}
|
||||
|
||||
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
|
||||
|
|
@ -122,8 +122,7 @@ public class AuthorizingFileContentProvider<T extends RemoteFactoryUrl>
|
|||
throw exception;
|
||||
}
|
||||
}
|
||||
throw new DevfileException(
|
||||
String.format("%s: %s", e.getMessage(), exception.getMessage()), exception);
|
||||
throw new DevfileException("Could not reach devfile at " + " `" + exception.getMessage() + "`", exception);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue