Skip to content

Commit

Permalink
Demote a panic to a warning.
Browse files Browse the repository at this point in the history
  • Loading branch information
jmgao committed Apr 9, 2019
1 parent 7f6a92f commit 8c25233
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion dhc/src/input/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,8 @@ impl RawInputManager {
};

if result == -1i32 as u32 {
panic!("GetRawInputData failed to get raw input data");
error!("GetRawInputData failed to get raw input data");
return;
}

let rawinput = unsafe { *(&buffer as *const AlignedBuffer as *const RAWINPUT) };
Expand Down

0 comments on commit 8c25233

Please sign in to comment.