Fix error message in CLI

Fixes #264