pg: Better error reporting + basic exec() method
This commit is contained in:
parent
b242176071
commit
c51b5f3598
5 changed files with 173 additions and 28 deletions
6
FU/PG.pm
6
FU/PG.pm
|
|
@ -8,4 +8,10 @@ package FU::PG::conn {
|
|||
sub lib_version { FU::PG::lib_version() }
|
||||
};
|
||||
|
||||
package FU::PG::error {
|
||||
use overload '""' => sub($e, @) {
|
||||
$e->{verbose_message} || "$e->{severity}: $e->{message}\n";
|
||||
};
|
||||
}
|
||||
|
||||
1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue