Print meaningful error message for wrong --type (fixes bug 946438)

This commit is contained in:
baron@percona.com
2012-03-04 14:33:48 -08:00
parent e8ff918ba1
commit 633516b75a

View File

@@ -12350,6 +12350,11 @@ sub main {
);
};
if ( $EVAL_ERROR ) {
if ( $EVAL_ERROR =~ m/perhaps you forgot to load/ ) {
# There is no module to handle --type, so wrong --type
die "'$module' is not a valid input type. "
. "Please check the documentation for --type.\n";
}
die "Failed to load $module module: $EVAL_ERROR";
}