diff --git a/R/module_import.R b/R/module_import.R index 84a21af..32cf68c 100644 --- a/R/module_import.R +++ b/R/module_import.R @@ -157,8 +157,12 @@ read_table <- function(path, header = TRUE, sep = ",", dec = ".", quote = "\"'", comment.char = comment.char) }, error = function(e) { - ## Return a safeError if a parsing error occurs - stop(safeError(e)) + showModal(modalDialog( + conditionMessage(e), + title = "Data import failed!", + easyClose = TRUE + )) + return(NULL) } ) }