Skip to content

Commit

Permalink
fix(docker): Tweak messages for exception and log (#3763)
Browse files Browse the repository at this point in the history
* fix(docker): Tweak messages for exception and log
  • Loading branch information
dragon3 authored and marchello2000 committed Jun 12, 2019
1 parent 5e8726a commit db7c7a1
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ class DockerRegistryClient {
String userDefinedCatalog = new File(catalogFile).getText()
return (DockerRegistryCatalog) new Gson().fromJson(userDefinedCatalog, DockerRegistryCatalog.class)
} catch (Exception e) {
throw new DockerRegistryOperationException("Unable to read catalog file $catalogFile:" + e.getMessage())
throw new DockerRegistryOperationException("Unable to read catalog file $catalogFile: " + e.getMessage(), e)
}
}

Expand All @@ -336,7 +336,7 @@ class DockerRegistryClient {
registryService.getCatalog(paginateSize, token, userAgent)
}, "_catalog")
} catch (Exception e) {
log.warn("Error encountered during catalog of $path" + e.getMessage())
log.warn("Error encountered during catalog of $path", e)
return new DockerRegistryCatalog(repositories: [])
}

Expand Down

0 comments on commit db7c7a1

Please sign in to comment.