improve error message in cli