X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/44c95f99098fa6c6acbfa82d4b6cbc6015eb6e39..9f487917d8c2aa3958473dd1c11dc584485c1229:/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