Skip to content

Commit

Permalink
Update Generate Script request
Browse files Browse the repository at this point in the history
  • Loading branch information
arturofigueroabim committed Apr 9, 2024
1 parent b1b42aa commit 4fa8522
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -345,14 +345,17 @@ impl Db {
}
}
Err(_) => {
info!("No records were found");
return Ok("No records found for the given project and user.".into());
info!("Token not available for Bridgehead {}", bridgehead);
script_lines.push(format!(
"\n # Token not available for bridgehead '{}'",
bridgehead
));
}
}
}

if !script_lines.is_empty() {
let script = generate_r_script(script_lines); // Assuming this function exists and works as intended
let script = generate_r_script(script_lines);
Ok(script)
} else {
Ok("No records found for the given project and user.".into())
Expand Down

0 comments on commit 4fa8522

Please sign in to comment.