Better error handling for misusing compare command