We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9987b91 commit de5beefCopy full SHA for de5beef
src-tauri/cli/src/bin/dg.rs
@@ -621,9 +621,13 @@ async fn main() {
621
.get_one::<Url>("url")
622
.expect("No enrollment URL was provided or it's invalid");
623
debug!("Successfully parsed enrollment token and URL");
624
- let config = enroll(url, token)
625
- .await
626
- .expect("The enrollment process has failed");
+ let config = match enroll(url, token).await {
+ Ok(cfg) => cfg,
+ Err(err) => {
627
+ error!("Enrollment process failed with error: {err}");
628
+ return;
629
+ }
630
+ };
631
debug!("Successfully enrolled the device, saving the configuration.");
632
if let Err(err) = config.save(&config_path) {
633
error!("{err}");
0 commit comments