Skip to content

Commit

Permalink
Minimised fix
Browse files Browse the repository at this point in the history
  • Loading branch information
HyukjinKwon committed Apr 27, 2017
1 parent 8874de1 commit b802e36
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions R/pkg/R/utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -864,8 +864,7 @@ captureJVMException <- function(e, method) {
# Extract the first message of JVM exception.
first <- strsplit(msg[2], "\r?\n\tat")[[1]][1]
stop(paste0(rmsg, "no such table - ", first), call. = FALSE)
} else
if (any(grep("org.apache.spark.sql.catalyst.parser.ParseException: ", stacktrace))) {
} else if (any(grep("org.apache.spark.sql.catalyst.parser.ParseException: ", stacktrace))) {
msg <- strsplit(stacktrace, "org.apache.spark.sql.catalyst.parser.ParseException: ",
fixed = TRUE)[[1]]
# Extract "Error in ..." message.
Expand Down

0 comments on commit b802e36

Please sign in to comment.