X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/0561bd0c3c07257fd58ded6c7cfa5feeae97af57..d7a5e6e37e9e9251177f9fad98d867f477e69537:/services/api/lib/whitelist_update.rb diff --git a/services/api/lib/whitelist_update.rb b/services/api/lib/whitelist_update.rb index f25d423810..17aed4b48d 100644 --- a/services/api/lib/whitelist_update.rb +++ b/services/api/lib/whitelist_update.rb @@ -6,7 +6,7 @@ module WhitelistUpdate def check_update_whitelist permitted_fields attribute_names.each do |field| if !permitted_fields.include?(field.to_sym) && really_changed(field) - errors.add field, "cannot be modified in this state (#{send(field+"_was").inspect}, #{send(field).inspect})" + errors.add field, "cannot be modified in state '#{self.state}' (#{send(field+"_was").inspect}, #{send(field).inspect})" end end end