~tyil/raku-local-musashi

95c548fe2fd645d897eb3cfe8d745c6211c6742a — Patrick Spek a month ago e5b6e50
Output faulty db-driver value
1 files changed, 4 insertions(+), 2 deletions(-)

M lib/Local/Musashi.pm6
M lib/Local/Musashi.pm6 => lib/Local/Musashi.pm6 +4 -2
@@ 54,7 54,9 @@ unit sub MAIN (
	# Set up database connection
	my $*DB;

	given ($*CONFIG.get('database.driver', '').fc) {
	my $db-driver = $*CONFIG.get('database.driver', '').fc;

	given ($db-driver) {
		when 'postgresql' {
			try require DB::Pg;



@@ 76,7 78,7 @@ unit sub MAIN (
			$*DB = DB::Pg.new(:$conninfo);
		}
		default {
			.warning("Invalid database driver") with $*LOG;
			.warning("Invalid database driver '$db-driver'") with $*LOG;
		}
	}