DEV: Better custom field preload error (#11044)

This commit is contained in:
Mark VanLandingham 2020-10-27 10:05:07 -05:00 committed by GitHub
parent 03503a37be
commit 554a617b3d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -165,7 +165,7 @@ module HasCustomFields
@preloaded[key]
else
# for now you can not mix preload an non preload, it better just to fail
raise StandardError, "Attempting to access a non preloaded custom field, this is disallowed to prevent N+1 queries."
raise StandardError, "Attempted to access the non preloaded custom field '#{key}'. This is disallowed to prevent N+1 queries."
end
end
end