Skip to content

Commit 74255b9

Browse files
authored
Fix a JET warning (#85)
1 parent e183d37 commit 74255b9

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

src/Preferences.jl

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,8 @@ function _get_project_toml(u, active_project_only)
233233
end
234234
end
235235

236+
project_toml === nothing && error("could not locate Project.toml")
237+
236238
# X-ref: https://github.com/JuliaPackaging/Preferences.jl/issues/34
237239
# We need to handle the edge cases where `project_toml` doesn't exist yet
238240
if !isfile(project_toml)

0 commit comments

Comments
 (0)