Skip to content

Instantly share code, notes, and snippets.

@samrose
Created April 23, 2013 17:26
Show Gist options
  • Save samrose/5445637 to your computer and use it in GitHub Desktop.
Save samrose/5445637 to your computer and use it in GitHub Desktop.
SCREAM!
dbg:tracer().
{ok,<0.164.0>}
(smc@Sams-MacBook-Air)3> dbg:p(all, c).
{ok,[{matched,'smc@Sams-MacBook-Air',139}]}
(smc@Sams-MacBook-Air)4> dbg:tpl(boss_router, x).
{ok,[{matched,'smc@Sams-MacBook-Air',12},{saved,x}]}
(smc@Sams-MacBook-Air)5> (<0.144.0>) call boss_router:set_controllers(<0.157.0>,["smc_participant_controller","smc_profile","smc_security_controller"])
(<0.144.0>) returned from boss_router:set_controllers/2 -> ok
(<0.144.0>) call boss_router:reload(<0.157.0>)
13:25:06.391 [info] Loading routes from "/Users/samrose/Desktop/smc_chicagoboss/smc/priv/smc.routes" ....
(<0.144.0>) returned from boss_router:reload/1 -> ok
(<0.144.0>) call boss_router:route(<0.157.0>,"/")
(<0.144.0>) returned from boss_router:route/2 -> {ok,
{smc,"security","login",[]}}
13:25:06.414 [info] GET / [smc] 200 24ms
(<0.144.0>) call boss_router:set_controllers(<0.157.0>,["smc_participant_controller","smc_profile","smc_security_controller"])
(<0.144.0>) returned from boss_router:set_controllers/2 -> ok
(<0.144.0>) call boss_router:reload(<0.157.0>)
13:25:11.424 [info] Loading routes from "/Users/samrose/Desktop/smc_chicagoboss/smc/priv/smc.routes" ....
(<0.144.0>) returned from boss_router:reload/1 -> ok
(<0.144.0>) call boss_router:route(<0.157.0>,"/")
(<0.144.0>) returned from boss_router:route/2 -> {ok,
{smc,"security","login",[]}}
(<0.144.0>) call boss_router:unroute(<0.157.0>,smc,["smc_participant_controller","smc_profile","smc_security_controller"],"profile","show",[{id,"participant-517601525cb0b81256000001"}])
(<0.144.0>) exception_from {boss_router,unroute,6} {error,badarg}
13:25:11.443 [error] CRASH REPORT Process <0.144.0> with 0 neighbours crashed with reason: bad argument in call to erlang:list_to_atom(undefined) in boss_router:unroute/6 line 46
(<0.143.0>) call boss_router:set_controllers(<0.157.0>,["smc_participant_controller","smc_profile","smc_security_controller"])
(<0.143.0>) returned from boss_router:set_controllers/2 -> ok
(<0.143.0>) call boss_router:reload(<0.157.0>)
13:25:11.446 [info] Loading routes from "/Users/samrose/Desktop/smc_chicagoboss/smc/priv/smc.routes" ....
(<0.143.0>) returned from boss_router:reload/1 -> ok
(<0.143.0>) call boss_router:route(<0.157.0>,"/")
(<0.143.0>) returned from boss_router:route/2 -> {ok,
{smc,"security","login",[]}}
(<0.143.0>) call boss_router:unroute(<0.157.0>,smc,["smc_participant_controller","smc_profile","smc_security_controller"],"profile","show",[{id,"participant-517601525cb0b81256000001"}])
(<0.143.0>) exception_from {boss_router,unroute,6} {error,badarg}
13:25:11.465 [error] CRASH REPORT Process <0.143.0> with 0 neighbours crashed with reason: bad argument in call to erlang:list_to_atom(undefined) in boss_router:unroute/6 line 46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment