a07b444
Set the state_reason when format_mmd raises in frontend and do not overwrite the state_reason in backend.