[vhffs-dev] [1228] Let's be more consistent with return values.

[ Thread Index | Date Index | More vhffs.org/vhffs-dev Archives ]


Revision: 1228
Author:   beuss
Date:     2008-06-23 12:45:36 +0200 (Mon, 23 Jun 2008)

Log Message:
-----------
Let's be more consistent with return values.

Modified Paths:
--------------
    trunk/vhffs-api/src/Vhffs/Services/Mail.pm


Modified: trunk/vhffs-api/src/Vhffs/Services/Mail.pm
===================================================================
--- trunk/vhffs-api/src/Vhffs/Services/Mail.pm	2008-06-23 08:44:25 UTC (rev 1227)
+++ trunk/vhffs-api/src/Vhffs/Services/Mail.pm	2008-06-23 10:45:36 UTC (rev 1228)
@@ -409,7 +409,7 @@
     my $sql = 'INSERT INTO vhffs_forward(domain, local_part, remote_name, password) VALUES(?, ?, ?, \'x\')';
     my $dbh = $self->{db};
     my $sth = $dbh->prepare($sql);
-    $sth->execute($self->{domain}, $name, $remote) or return -1;
+    $sth->execute($self->{domain}, $name, $remote) or return -3;
 
 	$self->{'forward'}{$name}{'local_part'} = $name;
 	$self->{'forward'}{$name}{'domain'} = $self->{'domain'};


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/