Better error message if repo is not started

Closes #248.