Make error for empty config a little friendlier
commitc5e709d433bdd6694ad68b67978b655a57f740df
authorAnish Athalye <me@anishathalye.com>
Thu, 25 Jun 2020 19:56:42 +0000 (25 15:56 -0400)
committerAnish Athalye <me@anishathalye.com>
Thu, 25 Jun 2020 20:07:23 +0000 (25 16:07 -0400)
tree533bcf577b1fff6651c30fff23aea96cd2aa5226
parent043373ea74f85ff3c55a9c9f4eeb13ad7d694e71
Make error for empty config a little friendlier

In the setup guide in the README, we have people start out with an empty
file (created using `touch`). Before this patch, Dotbot gave the
following error:

    Configuration file must be a list of tasks

Instead, with this patch, Dotbot says:

    Configuration file is empty, no work to do

This change was prompted by
https://github.com/anishathalye/dotbot/pull/226.
dotbot/cli.py
test/tests/config-empty.bash