[Code and error message](https://i.stack.imgur.com/knXR7.png)

I'm trying to add an error check to my calculator but no matter what function I use, I'm getting my error message repeated back to me. Please see picture for info. Any assistance with this is greatly appreciated. Thanks