You can find the error in GT::SQL::error.
Here's a snippet of code from one of the plugins:
====
if (! $new_table->create()) {
$GT::SQL::errcode ||= ''; #silence -w, ugh.
$GT::SQL::errcode eq 'TBLEXISTS' ? ($message = "Could not create table <B>$table_name</B> (table already exists)\n") :
($error = "Could not create table <B>$table_name</B>: $GT::SQL::error)");
$new_table->set_defaults();
$new_table->save_schema();
};
=====
I'm not sure what errors are trapped, but you do get more information than just "undef" :)
PUGDOG� Enterprises, Inc.
The best way to contact me is to NOT use Email.
Please leave a PM here.
Here's a snippet of code from one of the plugins:
====
if (! $new_table->create()) {
$GT::SQL::errcode ||= ''; #silence -w, ugh.
$GT::SQL::errcode eq 'TBLEXISTS' ? ($message = "Could not create table <B>$table_name</B> (table already exists)\n") :
($error = "Could not create table <B>$table_name</B>: $GT::SQL::error)");
$new_table->set_defaults();
$new_table->save_schema();
};
=====
I'm not sure what errors are trapped, but you do get more information than just "undef" :)
PUGDOG� Enterprises, Inc.
The best way to contact me is to NOT use Email.
Please leave a PM here.