Correct error message formats and better error message for cbmex