diff options
| author | David Bremner <david@tethera.net> | 2022-07-29 08:23:11 -0300 |
|---|---|---|
| committer | David Bremner <david@tethera.net> | 2022-09-03 08:24:43 -0300 |
| commit | 8ba3057d01b11fb806581f8dc451a8891a4d4e0e (patch) | |
| tree | 6c7baaff06caea9c0ae5ca02dbc3f7df4f84fdb0 /test | |
| parent | 25e2790e303b6d9334676e3165a92c6084aa3567 (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-x | test/T560-lib-error.sh | 4 |
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 |
