-
-
Notifications
You must be signed in to change notification settings - Fork 21.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ERR_FAIL_COND_MSG sometimes doesn't print message #32276
Comments
Okay, it's possible: Just run the project and spam Space. Sometimes there's wrong message. |
Also seems to have been noted in #32143 (that it sometimes does one, and sometimes the other), this might be in part because the current implementation: Lines 276 to 284 in f1146c2
... of the various _MSG macros might be kind of silly, I can go back and make them not use (at the time I figured getting this change through at all so people would start employing it everywhere in godot mattered most, but I can refine it now to not do unnecessary work) but also if this implementation doesn't work, it must mean that |
Might be related: #31832 (comment). |
Also is anyone aware of how long ago the If we don't care about that part fixing this current problem isn't hard, but it seems like a weird thing to have removed when having both the error cond and the message itself is quite useful in the debugger? Found the commit: #21884 I guess I'll PR the simple fix for now and we can consider if maybe adding back the condition and function metadata is useful :) edit: (scratch all this, need to debug the error message stuff I guess 🤔, new PR later) |
This was removed by @RyanStein in godotengine#21884 in the case where an error message is provided, but this is actually useful information to have even when there is a custom error message. This PR makes it so that the "C++ Error" is shown whenever there is a custom error message provided. Also adds method name to the error item title, and re-adds the most relevant info in the tooltip for quick error checks without expanding. Renames C Error/Source to C++ Error/Source, since that's what it is. And fix untranslatable entry due to misuse of TTR(). And some more cleanup for readability. Cf. godotengine#32276 (comment)
This was removed by @RyanStein in godotengine#21884 in the case where an error message is provided, but this is actually useful information to have even when there is a custom error message. This PR makes it so that the "C++ Error" is shown whenever there is a custom error message provided. Also adds method name to the error item title, and re-adds the most relevant info in the tooltip for quick error checks without expanding. Renames C Error/Source to C++ Error/Source, since that's what it is. And fix untranslatable entry due to misuse of TTR(). And some more cleanup for readability. Cf. godotengine#32276 (comment)
Godot version:
fb12f54
Issue description:
So, uh, this happened
I'm not sure if it's possible to reliably reproduce it with minimal project.
The text was updated successfully, but these errors were encountered: