Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert SQLite directory to URI #2922

Merged
merged 35 commits into from
Jul 3, 2023
Merged
Changes from 1 commit
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update internal/backends/sqlite/backend.go
Co-authored-by: Chi Fujii <chi.fujii@ferretdb.io>
  • Loading branch information
Dmitry and chilagrow authored Jun 30, 2023
commit 184ca66c5d68a5430327c09cbdf81d23456054f8
2 changes: 1 addition & 1 deletion internal/backends/sqlite/backend.go
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ func validateURI(value string) (*url.URL, error) {
}

if !strings.HasSuffix(dir, "/") {
return nil, lazyerrors.Errorf("backend URI should be a directory: %q", value)
return nil, lazyerrors.Errorf("backend URI should be a directory ending with '/': %q", value)
}

fi, err := os.Stat(dir)
Expand Down