One of the first really clever nodes I stumbled upon at the monastery was
"Falsify" scalar strings by
Fastolfe which can create "1 but false" as well as "I'm an error message - but false" which was its original intention... While not meant for production code, it does address your question.
-Blake