Skip to content

Commit 930b765

Browse files
committed
fixed error handling in get_collectri
1 parent 012adee commit 930b765

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

R/utils-omnipath.R

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -129,14 +129,13 @@ get_collectri <- function(organism='human', split_complexes=FALSE, ...){
129129
base::rbind(collectri, .)
130130
},
131131
error = function(e){
132-
OmnipathR::omnipath_msg("error", conditionMessage(e))
133-
OmnipathR::omnipath_msg(
134-
"error",
132+
msg <-
135133
paste0(
136134
"[decoupleR] Failed to download TF-miRNA interactions from ",
137135
"OmniPath. For more information, see the OmnipathR log."
138136
)
139-
)
137+
OmnipathR::omnipath_msg("error", conditionMessage(e))
138+
OmnipathR::omnipath_msg("error", msg)
140139
stop(msg)
141140
}
142141
)

0 commit comments

Comments
 (0)