Skip to content

Commit

Permalink
try including some error messaging when all mirrors fail
Browse files Browse the repository at this point in the history
  • Loading branch information
dlaehnemann authored Oct 30, 2023
1 parent 57ca94e commit a1a58f9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions workflow/scripts/get-transcript-info.R
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,9 @@ while (class(mart)[[1]] != "Mart") {
str_c(
"Have tried all 4 available Ensembl biomaRt mirrors ",
rounds,
" times. You might have a connection problem, or no mirror is responsive."
" times. You might have a connection problem, or no mirror is responsive.\n",
"The last error message was:\n",
e
)
)
}
Expand Down Expand Up @@ -194,4 +196,4 @@ if ("transcript_mane_select" %in% colnames(other_annotations)) {
write_tsv(
other_annotations,
snakemake@output[[2]]
)
)

0 comments on commit a1a58f9

Please sign in to comment.