summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorivan <ivan>2011-12-02 04:12:40 +0000
committerivan <ivan>2011-12-02 04:12:40 +0000
commitc2b8e72c3b1d387bf3cd724bc6d4186ca80cd832 (patch)
tree168627f98f05c05f6d652839af861e787a5c8251
parent20423e2cbe5cd202497afa128dbde6a50b84ce7c (diff)
better error message for identical replacements
-rw-r--r--FS/FS/Record.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/FS/FS/Record.pm b/FS/FS/Record.pm
index 4a5def605..514df491b 100644
--- a/FS/FS/Record.pm
+++ b/FS/FS/Record.pm
@@ -1309,7 +1309,9 @@ sub replace {
? ($_, $new->getfield($_)) : () } $old->fields;
unless (keys(%diff) || $no_update_diff ) {
- carp "[warning]$me $new -> replace $old: records identical"
+ carp "[warning]$me ". ref($new)."->replace ".
+ ( $primary_key ? "$primary_key ".$new->get($primary_key) : '' ).
+ ": records identical"
unless $nowarn_identical;
return '';
}