Skip to content

Conversation

@allisonwang-db
Copy link
Contributor

What changes were proposed in this pull request?

This PR is a follow-up for #39910. It updates the error message of the error class INVALID_TEMP_OBJ_REFERENCE.

Why are the changes needed?

To make the error message more user-friendly.

Does this PR introduce any user-facing change?

Yes. This PR updates the error message for INVALID_TEMP_OBJ_REFERENCE.

How was this patch tested?

Existing tests

"INVALID_TEMP_OBJ_REFERENCE" : {
"message" : [
"Cannot create a persistent <obj> <objName> by referencing a temporary <tempObj> <tempObjName>. Please make the temporary <tempObj> persistent, or make the persistent <obj> temporary."
"Cannot create a persistent object <objName> of type <obj> because it references a temporary object <tempObjName> of type <tempObj>. Please make the temporary object <tempObjName> persistent, or make the persistent object <objName> temporary."
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
"Cannot create a persistent object <objName> of type <obj> because it references a temporary object <tempObjName> of type <tempObj>. Please make the temporary object <tempObjName> persistent, or make the persistent object <objName> temporary."
"Cannot create the persistent object <objName> of the type <obj> because it references to the temporary object <tempObjName> of the type <tempObj>. Please, make the temporary object <tempObjName> persistent, or make the persistent object <objName> temporary."

@allisonwang-db
Copy link
Contributor Author

cc @srielau

@MaxGekk
Copy link
Member

MaxGekk commented Mar 1, 2023

+1, LGTM. Merging to master.
Thank you, @allisonwang-db.

@MaxGekk MaxGekk closed this in de56622 Mar 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants