aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Fripost/Schema/Local.pm
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem.moulin@fripost.org>2012-09-19 02:10:41 +0200
committerGuilhem Moulin <guilhem.moulin@fripost.org>2012-09-19 02:10:41 +0200
commit906d5f24374eb190f6b7a00523fb16e5e683ac81 (patch)
tree61494ece954501a11f02552a140982aed854cbd3 /lib/Fripost/Schema/Local.pm
parent9881490f8c578555aa2349f8223104aa22fc8954 (diff)
Better way to create lists.
Diffstat (limited to 'lib/Fripost/Schema/Local.pm')
-rw-r--r--lib/Fripost/Schema/Local.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Fripost/Schema/Local.pm b/lib/Fripost/Schema/Local.pm
index 64dd622..89c0a9a 100644
--- a/lib/Fripost/Schema/Local.pm
+++ b/lib/Fripost/Schema/Local.pm
@@ -56,7 +56,7 @@ sub get {
);
if ($locals->code) {
die $options{'-die'}."\n" if defined $options{'-die'};
- die $locals->error;
+ die $locals->error."\n";
}
# The following is not supposed to happen. Note that there is
@@ -124,7 +124,7 @@ sub exists {
return 1 unless $mesg->code; # 0 Success
unless ($mesg->code == 32) { # 32 No such object
die $options{'-die'}."\n" if defined $options{'-die'};
- die $mesg->error;
+ die $mesg->error."\n";
}
}
return 0;