The ability to return an error in automation for display to customers

Can you add the ability to return an error in automation for display to customers? It would be convenient to notify them of incorrect actions.