Add the Error Text Optional Argument to Console.assert Methods
-
I want the script to throw an error when I do something stupid and tell me why.
The assert methods seem to be what I'm looking for, but there doesn't seem to be a way to make them print the error message that I want, e.g. assertTrue prints "condition is false". Writing a whole logic gate for this seems silly. Can the assert methods be made into overloaded with the optional error string ?