Skip to content
Snippets Groups Projects
Commit 45ff6411 authored by Monika Komorowska's avatar Monika Komorowska
Browse files

deleted misplaced croak statement

parent 0d9f6dc4
No related branches found
No related tags found
No related merge requests found
......@@ -164,9 +164,8 @@ sub create {
if ( $drop_db ) {
$dbh->do( "DROP DATABASE $dbname" );
print "Database $dbname dropped\n" if($self->verbose) ;
}
} else {
if (!$drop_db ) {
my $p;
if($force){
$p = 'yes';
......@@ -183,9 +182,7 @@ sub create {
print "$dbname NOT removed\n";
exit(1);
}
} else {
croak( "Database $dbname already exists. "
. 'Use -create option to overwrite it.' );
}
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment