Skip to content

Commit 49eec3d

Browse files
Mention either response code.
1 parent 87894ad commit 49eec3d

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

R/DataMart.R

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,13 @@ QSaveData <- function(object, filename, compression.file.size.threshold = NULL,
343343

344344
if (!has.errored && res$status_code == 413) # 413 comes from IIS when we violate its web.config limits
345345
stopBadRequest(res, "Could not write to Displayr Cloud Drive. Data to write is too large.")
346-
else if (!has.errored && (res$status_code == 404 || res$status_code == 422))
346+
else if (!has.errored && res$status_code == 422)
347+
{
348+
stop("QSaveData has encountered an unknown error. ",
349+
"422: The file could not properly be saved. ",
350+
"The likely cause was an incorrect path preceding the filename, or insufficient access to the file path.")
351+
}
352+
else if (!has.errored && res$status_code == 404)
347353
{
348354
stop("QSaveData has encountered an unknown error. ",
349355
"404: The file could not properly be saved. ",

0 commit comments

Comments
 (0)