com.jimuwd.xian.registry-proxy 1.1.4 → 1.1.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/server/index.js +2 -3
- package/package.json +1 -1
package/dist/server/index.js
CHANGED
|
@@ -167,9 +167,8 @@ async function fetchFromRegistry(registry, targetUrl, reqFromDownstreamClient, l
|
|
|
167
167
|
}
|
|
168
168
|
catch (e) {
|
|
169
169
|
if (e instanceof Error) {
|
|
170
|
-
logger.error(e.code === 'ECONNREFUSED'
|
|
171
|
-
|
|
172
|
-
: `Error from ${registry.normalizedRegistryUrl}: ${e.message}`, e);
|
|
170
|
+
logger.error(e.code === 'ECONNREFUSED' ? `Upstream ${targetUrl} unreachable [ECONNREFUSED]`
|
|
171
|
+
: `Error fetching from ${targetUrl}, ${e.message}`, e);
|
|
173
172
|
}
|
|
174
173
|
else {
|
|
175
174
|
logger.error("Unknown error", e);
|