Correctly handle error code in messages with block option.