tests/test-paths.t
changeset 46828 395cf404e76a
parent 46827 1ecf082386b7
child 46928 93c224dc099b
--- a/tests/test-paths.t	Tue Mar 23 23:55:33 2021 +0100
+++ b/tests/test-paths.t	Wed Mar 24 00:04:58 2021 +0100
@@ -370,3 +370,18 @@
   $ hg pull chain_path
   abort: cannot use `path://other_default`, "other_default" is also define as a `path://`
   [255]
+
+Test basic error cases
+----------------------
+
+  $ cat << EOF > .hg/hgrc
+  > [paths]
+  > error-missing=path://unknown
+  > EOF
+  $ hg path
+  abort: cannot use `path://unknown`, "unknown" is not a known path
+  [255]
+  $ hg pull error-missing
+  abort: cannot use `path://unknown`, "unknown" is not a known path
+  [255]
+