aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorDavid Bremner <david@tethera.net>2022-07-29 08:23:11 -0300
committerDavid Bremner <david@tethera.net>2022-09-03 08:24:43 -0300
commit8ba3057d01b11fb806581f8dc451a8891a4d4e0e (patch)
tree6c7baaff06caea9c0ae5ca02dbc3f7df4f84fdb0 /test
parent25e2790e303b6d9334676e3165a92c6084aa3567 (diff)
lib/open: return non-SUCCESS on missing database path
This simplifies the logic of creating the directory path when it doesn't exist.
Diffstat (limited to 'test')
-rwxr-xr-xtest/T560-lib-error.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/T560-lib-error.sh b/test/T560-lib-error.sh
index a2901ff6..30cce943 100755
--- a/test/T560-lib-error.sh
+++ b/test/T560-lib-error.sh
@@ -91,7 +91,7 @@ EOF
cat <<'EOF' >EXPECTED
== stdout ==
== stderr ==
-Error: Cannot open database at CWD/nonexistent/foo: No such file or directory.
+Error: database path 'CWD/nonexistent/foo' does not exist or is not a directory.
EOF
test_expect_equal_file EXPECTED OUTPUT
@@ -132,7 +132,7 @@ EOF
cat <<'EOF' >EXPECTED
== stdout ==
== stderr ==
-Error: Cannot open database at CWD/nonexistent/foo: No such file or directory.
+Error: database path 'CWD/nonexistent/foo' does not exist or is not a directory.
EOF
test_expect_equal_file EXPECTED OUTPUT