diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 665abdbed..cd24f1a39 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -393,7 +393,7 @@ class ApplicationController < ActionController::Base data = { error: error } - if error =~ /(already exists|duplicate key)/i + if error =~ /(already exists|duplicate key|duplicate entry)/i data[:error_human] = 'Object already exists!' end data