diff options
| author | Nathan Perry <avaglir@gmail.com> | 2018-04-07 03:29:26 -0400 |
|---|---|---|
| committer | Nathan Perry <avaglir@gmail.com> | 2018-04-07 03:29:26 -0400 |
| commit | 1e192fc976325f6bbaede91ab25241efa99e4475 (patch) | |
| tree | 4c0085f2e2a77d77e09559a91a4ae79b9dc30217 /src/main.rs | |
| parent | 7d9b836b27965421728fc72e6df0bf74b8121886 (diff) | |
minor changes, about to pull in serenity fork
Diffstat (limited to 'src/main.rs')
| -rw-r--r-- | src/main.rs | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs index 80ed991..e09e77a 100644 --- a/src/main.rs +++ b/src/main.rs @@ -99,7 +99,19 @@ fn run() -> Result<()> { trace!("command completed successfully"); }, Err(e) => { - error!("encountered error: {:?}", e); + match e { + Error(e) => { + error!("error encountered handling request: {}", e); + e.iter().skip(1).for_each(|e| { + error!("caused by: {}", e); + }); + + if let Some(bt) = e.backtrace() { + error!("backtrace: {:?}", bt); + } + } + e => error!("encountered error: {:?}", e); + } } } }) |
