Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Make expm compilable on the latest version of elixir

  • Loading branch information...
commit c59e359906ac3e354e83276121c18ac36d5576e7 1 parent d5e7c44
@yrashk authored
Showing with 4 additions and 4 deletions.
  1. +2 −2 Makefile
  2. +2 −2 lib/cli.ex
View
4 Makefile
@@ -13,7 +13,7 @@ sys.config: config.exs
@ERL_LIBS=deps elixir -pa ebin -e "config = Expm.Config.file!(%b{config.exs}); config.sys_config!(%b{sys.config})"
start: expm sys.config
- @ERL_LIBS=deps elixir --sname expm --erl "-pa ebin -config sys -s Elixir-Expm" --no-halt
+ @ERL_LIBS=deps elixir --sname expm --erl "-pa ebin -config sys -s Elixir.Expm" --no-halt
rel: rel/expm
@@ -21,4 +21,4 @@ rel/expm: expm
@mix relex.assemble
start-rel: rel sys.config
- @./rel/expm/erts-*/bin/erl -sname expm -config sys -s 'Elixir-Expm' -noinput
+ @./rel/expm/erts-*/bin/erl -sname expm -config sys -s 'Elixir.Expm' -noinput
View
4 lib/cli.ex
@@ -165,7 +165,7 @@ defrecord Expm.CLI, repository: Expm.Repository.HTTP.new.url, username: nil, pas
lc {dep, version} inlist Expm.Package.deps(repo, pkg) do
IO.puts "#{dep} #{version}"
end
- rescue Expm.Package.VersionNotFound[]=e ->
+ rescue e in [Expm.Package.VersionNotFound] ->
IO.puts e.message
end
def run(["deps", package, version], rec) do
@@ -174,7 +174,7 @@ defrecord Expm.CLI, repository: Expm.Repository.HTTP.new.url, username: nil, pas
lc {dep, version} inlist Expm.Package.deps(repo, pkg) do
IO.puts "#{dep} #{version}"
end
- rescue Expm.Package.VersionNotFound[]=e ->
+ rescue e in [Expm.Package.VersionNotFound] ->
IO.puts e.message
end
Please sign in to comment.
Something went wrong with that request. Please try again.