I have a function which sometimes returns error.
For example (setq val (funcname argument1 argument 2))
Now sometimes val contains correct value. But sometimes, if there is an error within the function, it returns #<%catch-all-apply-error%>
(if (equal val #<%catch-all-apply-error%>) does not work.
How to check whether the function has returned correct value or error ?
Thanks.