Skip to content

Commit a466948

Browse files
authored
typing_violation_error (#696)
1 parent 7535e94 commit a466948

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

rustler_mix/lib/rustler/compiler.ex

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -95,10 +95,7 @@ defmodule Rustler.Compiler do
9595
if os_type do
9696
os_type.os_type
9797
else
98-
throw_error(
99-
{:unknown_target,
100-
"#{target} is not in the support list yet. Please report it on https://github.com/rusterlium/rustler/issues."}
101-
)
98+
throw_error({:unknown_target, target})
10299
end
103100
end
104101

rustler_mix/lib/rustler/compiler/messages.ex

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,4 +53,10 @@ defmodule Rustler.Compiler.Messages do
5353
Note: You should already have this if you made your project with the project generator.
5454
"""
5555
end
56+
57+
def message({:unknown_target, target}) do
58+
"""
59+
#{target} is not in the support list yet. Please report it on https://github.com/rusterlium/rustler/issues."
60+
"""
61+
end
5662
end

0 commit comments

Comments
 (0)