Skip to content

Commit

Permalink
Include disk serial in error ticket
Browse files Browse the repository at this point in the history
  • Loading branch information
cholcombe973 committed Sep 21, 2017
1 parent dbc1e17 commit 37841c0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ fn check_for_failed_disks(config_dir: &str, simulate: bool) -> Result<(), String

if status.corrupted == true && status.repaired == false {
description.push_str(&format!("\nDisk path: {}", dev_path.display()));
description.push_str(&format!("\nDisk serial: {}", status.device.serial_number));
let _ = backend.remove_disk(&dev_path, simulate).map_err(
|e| e.to_string(),
)?;
Expand Down

0 comments on commit 37841c0

Please sign in to comment.