summaryrefslogtreecommitdiff
path: root/LedgerSMB.pm
diff options
context:
space:
mode:
Diffstat (limited to 'LedgerSMB.pm')
-rwxr-xr-xLedgerSMB.pm8
1 files changed, 7 insertions, 1 deletions
diff --git a/LedgerSMB.pm b/LedgerSMB.pm
index f0e11c11..9ca12b2f 100755
--- a/LedgerSMB.pm
+++ b/LedgerSMB.pm
@@ -688,7 +688,7 @@ sub _db_init {
$sth->execute;
my ($dbversion) = $sth->fetchrow_array;
if ($dbversion ne $self->{dbversion}){
- $self->error("Database is not the expected version.");
+ $self->error("Database is not the expected version. Was $dbversion, expected $self->{dbversion}");
}
@@ -710,6 +710,12 @@ sub _db_init {
}
}
+# Deprecated, only here for old code
+sub dberror{
+ my $self = shift @_;
+ $self->error(@_);
+}
+
sub redo_rows {
my $self = shift @_;