check that we have an error code before displaying an error label