Add pre-execute-hook error message to cmd console (OMS-362)