News for hackers. Stuff that matters.
Re:Launching Version 13.0 of Wolfram Language and Mathematica by mrjangles on Friday December 17, 2021 @06:43AM (#29590900)
Mathematica doesn't suck, it is just an extremely large language and it takes years to learn how to use it properly.

Anyway, to solve your first problem, add the definition f[_]:= Throw["Your error message here"}

To solve your second problem, use Block instead of Module (though in your simple example given here the solution is to just use neither).

There are no comments on this comment yet.