Skip to content

Commit 29d70c6

Browse files
author
José Valim
committed
Match on proper error on lock format mismatch
1 parent a455549 commit 29d70c6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/mix/lib/mix/dep/lock.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ defmodule Mix.Dep.Lock do
3636
def status(manifest_path \\ Mix.Project.manifest_path) do
3737
case :file.consult(manifest(manifest_path)) do
3838
{:ok, [{:v1, vsn, scm}]} -> {:ok, vsn, scm}
39-
{:ok, _} -> {:ok, "1.0.0", nil} # Force old version if file exists but old format
39+
{:error, {_, :erl_parse, _}} -> {:ok, "1.0.0", nil} # Force old version if file exists but old format
4040
_ -> :error
4141
end
4242
end

0 commit comments

Comments
 (0)