Skip to content

Commit 8f7a5d7

Browse files
Given more information on invalid 'RichSOCKnode' connections
1 parent 32408bb commit 8f7a5d7

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Package: parallelly
2-
Version: 1.46.1-9008
2+
Version: 1.46.1-9009
33
Title: Enhancing the 'parallel' Package
44
Imports:
55
parallel,

NEWS.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# Version (development version)
22

3-
* ...
3+
## New Features
4+
5+
* Given more information on invalid 'RichSOCKnode' connections.
46

57

68
# Version 1.46.1 [2026-01-07]

R/RichSOCKcluster.R

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ summary.RichSOCKnode <- function(object, ...) {
1717
res$connection <- tryCatch({
1818
summary(con)$description
1919
}, error = function(ex) {
20-
sprintf("ERROR: %s", conditionMessage(ex))
20+
exists <- (res$connection_index %in% getAllConnections())
21+
sprintf("ERROR: %s; %s connection #%d", conditionMessage(ex), if (exists) "existing" else "non-existing", res$connection_index)
2122
})
2223
}
2324
if (!is.null(host)) res$host <- host

0 commit comments

Comments
 (0)