diff options
author | ivan <ivan> | 2011-12-02 04:12:37 +0000 |
---|---|---|
committer | ivan <ivan> | 2011-12-02 04:12:37 +0000 |
commit | 4932dbd9b0cb58378a8f3657030b503d4ec8947f (patch) | |
tree | 79049dad0fb1f55789891b942881f24919cc6b11 | |
parent | 22848d65da6f1c0dafd17cb2f6c72388f7941bdb (diff) |
better error message for identical replacements
-rw-r--r-- | FS/FS/Record.pm | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/FS/FS/Record.pm b/FS/FS/Record.pm index 746cb5902..caddc6f91 100644 --- a/FS/FS/Record.pm +++ b/FS/FS/Record.pm @@ -1182,7 +1182,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 ''; } |