Print error when executing an operation