chiark / gitweb /
nailing-cargo: Print a better error about missing update mode
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 25 Jul 2020 00:12:07 +0000 (01:12 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 25 Jul 2020 00:13:16 +0000 (01:13 +0100)
commit5b0dba83eddb3c231e21bb5934a91c67a666c36a
treedb64451787a29018b7a9929ce44286f9fcb24c7c
parent1e672ac8e160ef647a7ea2df65d682c17427a0ca
nailing-cargo: Print a better error about missing update mode

If the user forgot generate-lockfile, we would fail with a confusing
ENOENT error from the command script.  Instead, spot this situation.

This also gives us a place to do decide to mkdir -p or something.

Related to #5, but does not fix it completely.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
nailing-cargo