Skip to content

Commit

Permalink
fix: clearer error when manifest is missing
Browse files Browse the repository at this point in the history
  • Loading branch information
bittermandel committed Jun 15, 2024
1 parent f4fbff5 commit 4d6878a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 9 deletions.
7 changes: 0 additions & 7 deletions Cargo.lock

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

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ edition = "2021"
[dependencies]
anyhow = "1.0.75"
camino = "1.1.6"
chrono = { version = "0.4.30", features = ["serde", "rustc-serialize"] }
chrono = { version = "0.4.30", features = ["serde"] }
clap = { version = "4.4.2", features = ["derive", "env"] }
config = "0.13.3"
dialoguer = { version = "0.10.4", features = ["fuzzy-select"] }
Expand Down
4 changes: 3 additions & 1 deletion src/commands/services.rs
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,9 @@ impl Logs {
.get_token()
.ok_or_else(|| anyhow!("No token found. Please login first."))?;

let manifest = read_manifest(&self.manifest)?;
let manifest = read_manifest(&self.manifest)
.expect(format!("Could not read manifest file {}", self.manifest).as_str());

let logurl: Uri = url::Url::parse(
format!(
"{}/orgs/{}/envs/{}/svcs/{}/logs",
Expand Down

0 comments on commit 4d6878a

Please sign in to comment.