Nothing is preventing the code from returning both at the same time. I've seen code (including in the standard library) that returns both an error and a return value. In a language with disjoint unions, such cases would be encoded properly.
and in the case where returning both is OK, then documentation makes that clear
this is not difficult
(spoiler: no)
If the language "addresses" it by convention then it is not addressing it at a language level at all
but i'm sure i won't convince you of anything here, so good luck to you