diff options
author | Peter Andersson <[email protected]> | 2016-08-25 11:37:14 +0200 |
---|---|---|
committer | Peter Andersson <[email protected]> | 2016-08-25 11:37:14 +0200 |
commit | fbff3418f1c2ac658c6ff5ee808b4a2af0e70c9e (patch) | |
tree | e3f7d7b79d4bb6f0fc5c291650773cf275050580 /lib/debugger/src/dbg_wx_view.erl | |
parent | a15b8a8f3ac81ddfad05c812c04101263ca9681f (diff) | |
parent | 2a6750d0804d1e30a5463c8aaf5b7342fda967fe (diff) | |
download | otp-fbff3418f1c2ac658c6ff5ee808b4a2af0e70c9e.tar.gz otp-fbff3418f1c2ac658c6ff5ee808b4a2af0e70c9e.tar.bz2 otp-fbff3418f1c2ac658c6ff5ee808b4a2af0e70c9e.zip |
Merge branch 'maint'
Diffstat (limited to 'lib/debugger/src/dbg_wx_view.erl')
-rw-r--r-- | lib/debugger/src/dbg_wx_view.erl | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/lib/debugger/src/dbg_wx_view.erl b/lib/debugger/src/dbg_wx_view.erl index 91fc0d08cb..86d009238f 100644 --- a/lib/debugger/src/dbg_wx_view.erl +++ b/lib/debugger/src/dbg_wx_view.erl @@ -263,7 +263,11 @@ shortcut(_) -> false. gui_load_module(Win, Mod) -> dbg_wx_trace_win:display(Win,{text, "Loading module..."}), - {ok, Contents} = dbg_iserver:call({raw_contents, Mod, any}), - Win2 = dbg_wx_trace_win:show_code(Win, Mod, Contents), - dbg_wx_trace_win:display(Win,{text, ""}), - Win2. + case dbg_iserver:call({raw_contents, Mod, any}) of + {ok, Contents} -> + Win2 = dbg_wx_trace_win:show_code(Win, Mod, Contents), + dbg_wx_trace_win:display(Win,{text, ""}), + Win2; + not_found -> + dbg_wx_trace_win:show_no_code(Win) + end. |