Skip to content

Commit

Permalink
Merge pull request #398 from evnu/abort-on-metadata-error
Browse files Browse the repository at this point in the history
Crash if metadata cannot be retrieved
  • Loading branch information
evnu authored Oct 27, 2021
2 parents ec1cd5b + c6492f6 commit 8f191dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rustler_mix/lib/rustler/compiler/config.ex
Original file line number Diff line number Diff line change
Expand Up @@ -82,8 +82,8 @@ defmodule Rustler.Compiler.Config do
{metadata, 0} ->
metadata

{_error, code} ->
System.stop(code)
{output, code} ->
raise "calling `cargo metadata` failed.\n" <> output
end

json = Jason.decode!(metadata)
Expand Down

0 comments on commit 8f191dc

Please sign in to comment.