Skip to content

Commit

Permalink
adding error catcher for debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
TaikiSan21 committed Dec 9, 2023
1 parent a7b7d72 commit aa5e2aa
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion devel/matchTemplateFunctions.R
Expand Up @@ -7,7 +7,10 @@ loadTemplateBinary <- function(x, names, columns) {
if(length(bin$data) == 0) {
return(NULL)
}
bin <- suppressWarnings(pbToDf(bin, templateNames=names)[columns])
bin <- try(suppressWarnings(pbToDf(bin, templateNames=names)[columns]))
if(inherits(bin, 'try-error')) {
stop('Problem loading binary file ', x)
}
bin$UID <- as.character(bin$UID)
bin$BinaryFile <- basename(x)
bin$date <- convertPgDate(bin$date)
Expand Down

0 comments on commit aa5e2aa

Please sign in to comment.