From 109194bb6af8973e85c3092171f33dd7f1bf269e Mon Sep 17 00:00:00 2001 From: Greg Sabino Mullane Date: Wed, 27 May 2015 22:49:07 -0400 Subject: [PATCH] If we cannot call connect_database, throw an exception rather than returning a string (relic of a bygone day) --- bucardo | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bucardo b/bucardo index 8effe97ff..c61da9d68 100755 --- a/bucardo +++ b/bucardo @@ -8588,7 +8588,7 @@ sub connect_database { my ($type,$dsn,$user,$pass) = split /\n/ => $conn; if ($type ne 'postgres') { - return "Cannot return a handle for database type $type"; + die "Cannot return a handle for database type $type\n"; } eval { -- 2.39.5