Skip to content

Commit

Permalink
fix #75
Browse files Browse the repository at this point in the history
  • Loading branch information
thewh1teagle committed Nov 1, 2024
1 parent fca23ab commit 05972db
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/rust/simple.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
fn main() {
tracing_subscriber::fmt::init();
let cookies = rookie::zen(None).unwrap();
let cookies = rookie::chrome(None).unwrap();
for cookie in cookies {
println!("{:?}", cookie);
}
Expand Down
6 changes: 5 additions & 1 deletion rookie-rs/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -498,5 +498,9 @@ pub fn any_browser(
return Ok(cookies);
}
}
bail!("Can't find any cookies");
bail!(
"\nNo cookies found.\n\
If you're using a Chromium-based browser, please specify the key file \
and run this program with administrator privileges."
);
}

0 comments on commit 05972db

Please sign in to comment.