3 ms·
Elixir gives you much more friendly error messages at runtime (I believe part of this feature was contributed to the Erlang VM, so improved it for all languages
by fyfy18 7y ago
Elixir gives you much more friendly error messages at runtime (I believe part of this feature was contributed to the Erlang VM, so improved it for all languages):
10:21:21.525 mid=1 [error] GenServer {Registry.WatcherManagerRegistry, 1} terminating
** (CaseClauseError) no case clause matching: {:ok, <snip>}
(core) lib/core/http.ex:64: Core.Http.request/7
(core) lib/core/monitors/built_in_monitor.ex:99: Core.Monitors.BuiltInMonitor.perform_request/1
(core) lib/core/monitors/built_in_monitor.ex:76: Core.Monitors.BuiltInMonitor.perform/1
(core) lib/core/watcher.ex:40: Core.Watcher.perform_check/1
(core) lib/core/watcher_server.ex:91: Core.WatcherServer.handle_info/2