Skip to content

Commit 32caeb7

Browse files
Continue mirror extension versions even if one fails
Currently, the OpenVSX server stops mirroring extension version if one of the versions failed to be mirrored. This commit logs the mirror failure instead of throwing an error. Fixes #923.
1 parent eb6cdd6 commit 32caeb7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

server/src/main/java/org/eclipse/openvsx/mirror/MirrorExtensionService.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,8 +142,8 @@ private void mirrorExtensionVersions(String namespaceName, String extensionName,
142142
mirrorExtensionVersion(json);
143143
data.getMirroredVersions().increment();
144144
} catch (Throwable t) {
145+
jobContext.logger().info("failure to mirror " + NamingUtil.toLogFormat(json) + " (" + (i+1) + "/" + toAdd.size() + ")");
145146
data.getFailedVersions().increment();
146-
throw t;
147147
}
148148
}
149149
}

0 commit comments

Comments
 (0)