This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
cs330_f2016:lab13scaffold [2017/03/22 23:55] dhart |
cs330_f2016:lab13scaffold [2017/04/05 16:42] dhart |
||
---|---|---|---|
Line 340: | Line 340: | ||
IO.puts("Crashing the module...") | IO.puts("Crashing the module...") | ||
pid = GenServer.call(ns, {:resolve, name}) | pid = GenServer.call(ns, {:resolve, name}) | ||
- | Process.exit(pid, :kill) | + | if pid == :error do |
+ | IO.puts(["Unable to find process ", Atom.to_string(name)]) | ||
+ | else | ||
+ | Process.exit(pid, :kill) | ||
+ | end | ||
end | end | ||
| |