Skip to content

Commit

Permalink
Merge pull request #925 from JojiiOfficial/master
Browse files Browse the repository at this point in the history
improve panic message
  • Loading branch information
JojiiOfficial authored Mar 29, 2021
2 parents bade888 + d104951 commit 82bc875
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ fn main() -> Result<(), Report> {

panic::set_hook(Box::new(|panic_info| {
error!(
"Caught panic with message: {}",
"PANIC: Shutting down spotifyd. Error message: {}",
match (
panic_info.payload().downcast_ref::<String>(),
panic_info.payload().downcast_ref::<&str>(),
Expand Down

0 comments on commit 82bc875

Please sign in to comment.