From 9ee33207c843aee6f2896662cc86c6e2bf5c020a Mon Sep 17 00:00:00 2001 From: Andrea Gilardi Date: Fri, 26 Apr 2024 08:12:58 +0200 Subject: [PATCH] More informative error message for error in query fix #290 --- R/read.R | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/R/read.R b/R/read.R index 0af0743b..9ebdade2 100644 --- a/R/read.R +++ b/R/read.R @@ -131,7 +131,8 @@ oe_read = function( oe_stop( .subclass = "oe_read-errorInQuery1", message = paste0( - "There is an error in the query or in oe_read. Please open a new issue at ", + "The query should be formatted as 'SELECT ... FROM ... '. ", + "If that's already the case, please open a new issue at ", "https://github.com/ropensci/osmextract/issues" ) )