Skip to content

Commit

Permalink
fix: improve error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
imathews committed Jan 22, 2025
1 parent a5b198a commit 08606be
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: redivis
Type: Package
Title: R interface for Redivis
Version: 0.8.1
Version: 0.8.2
Author: Redivis Inc.
Maintainer: Redivis <[email protected]>
Description: Supports working with Redivis API through R.
Expand Down
2 changes: 1 addition & 1 deletion R/api_request.R
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ make_request <- function(method='GET', query=NULL, payload = NULL, parse_respons

if (httr::status_code(res) >= 400 && stop_on_error){
if (is_json){
stop(response_content$error)
stop(str_interp("${response_content$error}_error: ${response_content$error_description}"))
} else {
stop(response_content)
}
Expand Down

0 comments on commit 08606be

Please sign in to comment.