From d3fb461b9deb87c209f848f720fa03ad853f8c1b Mon Sep 17 00:00:00 2001 From: Ryan Hafen Date: Tue, 5 Mar 2024 16:44:16 -0800 Subject: [PATCH 1/2] Change error checking to look for error class instead of simpleError - fixes #207 --- R/Application.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/Application.R b/R/Application.R index 22dab39..7d27b17 100644 --- a/R/Application.R +++ b/R/Application.R @@ -547,7 +547,7 @@ Application = R6::R6Class( # HTTPError response x = x$response } else { - if (inherits(x, "simpleError")) { + if (inherits(x, "error")) { # means UNHANDLED exception in middleware self$logger$error( "", From a7cb418c2224761d26e9c81c70b0746c60b2c692 Mon Sep 17 00:00:00 2001 From: Ryan Hafen Date: Tue, 5 Mar 2024 16:49:42 -0800 Subject: [PATCH 2/2] Bump version --- DESCRIPTION | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DESCRIPTION b/DESCRIPTION index 189adc6..ac91713 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -8,7 +8,7 @@ Description: application development. Out of the box allows to serve requests using 'Rserve' package, but flexible enough to integrate with other HTTP servers such as 'httpuv'. -Version: 1.2.1 +Version: 1.2.2 Authors@R: c( person(given = "Dmitry", family = "Selivanov",