User Tools

Site Tools


cs330_f2016:lab13scaffold

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
cs330_f2016:lab13scaffold [2017/03/22 16:55]
dhart
cs330_f2016:lab13scaffold [2017/04/05 09:42] (current)
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
   ​   ​
cs330_f2016/lab13scaffold.txt · Last modified: 2017/04/05 09:42 by dhart