changed message type to reflect that of an error