fix error messages in cli