Show an error message when `--ref` source does not exist

Fixes #59.