Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions R/debugExceptions.R
Original file line number Diff line number Diff line change
Expand Up @@ -212,8 +212,8 @@ debug.error <- function(stack.overflow = FALSE)
# user is choosing
path <- paste("/2.2/search?order=", order,
"&sort=", sort,
"&tagged=", tagged, "
&intitle=", search.query,
"&tagged=", tagged,
"&intitle=", search.query,
"&site=stackoverflow",
sep ="")

Expand Down Expand Up @@ -242,11 +242,12 @@ debug.error <- function(stack.overflow = FALSE)
{
split <- strsplit(error.message, ":")[[1]]

# Error messages from the prov.json will
# typically have an uneeded prefix followed
# by a colon ":"
# Error messages from the prov.json will typically have
# an unneeded prefix followed by a colon ":".
# e.g. "Error in data.frame(cylinders, mpg) :
# arguments imply differing number of rows: 4, 3"
if(length(split) > 1) {
error.message <- split[-1]
error.message <- split[2]
}

# This complicated mess of regex i=actually checks for 4 things (all inclusive):
Expand Down