Skip to content

Commit

Permalink
changed warn_For_status to stop instead, closes #28
Browse files Browse the repository at this point in the history
  • Loading branch information
sckott committed Mar 31, 2015
1 parent c3d2698 commit a14e495
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/zzz.R
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ gist_DELETE <- function(url, auth, headers, ...){
}

process <- function(x){
warn_for_status(x)
stop_for_status(x)
stopifnot(x$headers$`content-type` == 'application/json; charset=utf-8')
temp <- content(x, as = "text")
jsonlite::fromJSON(temp, FALSE)
Expand Down

0 comments on commit a14e495

Please sign in to comment.