Skip to content

Commit 125b193

Browse files
committed
Add panic reason when home dir could not be found
1 parent 3029761 commit 125b193

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ fn main() -> Result<(), Box<dyn Error>> {
1818
dir.push(REGISTRY_PATH);
1919
dir
2020
},
21-
_ => panic!()
21+
_ => panic!("Could not retrieve home directory")
2222
};
23-
23+
2424
let mut registry = SwitchRegistry::deserialize_from_file(&registry_dir)?;
2525

2626
match SwitchCommand::from_args() {

0 commit comments

Comments
 (0)