Skip to content

Commit

Permalink
fix missing module qualifier for JLConnectionError
Browse files Browse the repository at this point in the history
Fixes a typo qualifying JLConnectionError. Difficult to hit condition, but could result in `UndefVarError: JLConnectionError`.
  • Loading branch information
tanmaykm committed Aug 17, 2023
1 parent 2c0547d commit 714f2f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/connections.jl
Original file line number Diff line number Diff line change
Expand Up @@ -738,7 +738,7 @@ function conninfo(str::AbstractString)
ci_ptr = libpq_c.PQconninfoParse(str, err_ref)

if ci_ptr == C_NULL && err_ref[] == C_NULL
error(LOGGER, JLConnectionError(
error(LOGGER, Errors.JLConnectionError(

Check warning on line 741 in src/connections.jl

View workflow job for this annotation

GitHub Actions / format

[JuliaFormatter] reported by reviewdog 🐶 Raw Output: src/connections.jl:741:- error(LOGGER, Errors.JLConnectionError( src/connections.jl:742:- "libpq could not allocate memory for connection info" src/connections.jl:743:- )) src/connections.jl:752:+ error( src/connections.jl:753:+ LOGGER, src/connections.jl:754:+ Errors.JLConnectionError("libpq could not allocate memory for connection info"), src/connections.jl:755:+ )
"libpq could not allocate memory for connection info"
))
end
Expand Down

0 comments on commit 714f2f6

Please sign in to comment.