From 40c9e1c9aad8f5da79cd9142882ed34a4190f201 Mon Sep 17 00:00:00 2001 From: Lucilio Correia Date: Tue, 22 Oct 2024 17:29:04 -0300 Subject: [PATCH] add: show bad entry on URL invalid error --- scripts/dburl-parser.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/dburl-parser.sh b/scripts/dburl-parser.sh index 6c46a81..5c51978 100755 --- a/scripts/dburl-parser.sh +++ b/scripts/dburl-parser.sh @@ -16,6 +16,7 @@ queryless_url="${DB_URL%%\?*}"; schema="${queryless_url%//*}"; if test "${schema}" = "${queryless_url}"; then echo >&2 "database URLs must start with schema (i.e.: mysql://)"\ + && echo >&2 "URL_INVALID_ERROR: \"${DB_URL}\""\ && exit 2; fi schemaless_url=${queryless_url#*//};