Skip to content

Commit 27ddd7d

Browse files
committed
Merge pull request #56 from petermm/relax-check-to-warning
Relax function checks to warnings
2 parents 6489e11 + 070b43b commit 27ddd7d

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

lib/mix/tasks/check.ex

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -184,11 +184,13 @@ defmodule Mix.Tasks.Atomvm.Check do
184184
missing = MapSet.difference(calls_set, avail_funcs)
185185

186186
if MapSet.size(missing) != 0 do
187-
IO.puts("error: following modules or functions are not available on AtomVM:")
187+
IO.puts("Warning: following modules or functions are not available on AtomVM:")
188188
print_list(missing)
189189
IO.puts("")
190+
IO.puts("(Using them may not be supported; make sure ExAtomVM is fully updated.)")
191+
IO.puts("")
190192

191-
:error
193+
:ok
192194
else
193195
:ok
194196
end
@@ -215,11 +217,13 @@ defmodule Mix.Tasks.Atomvm.Check do
215217
""")
216218
end
217219

218-
IO.puts("error: following missing instructions are used:")
220+
IO.puts("Warning: following missing instructions are used:")
219221
print_list(missing_instructions)
220222
IO.puts("")
223+
IO.puts("(Using them may not be supported; make sure ExAtomVM is fully updated.)")
224+
IO.puts("")
221225

222-
:error
226+
:ok
223227
else
224228
:ok
225229
end

0 commit comments

Comments
 (0)