Skip to content

Commit

Permalink
Uncapitalize error messages
Browse files Browse the repository at this point in the history
  • Loading branch information
JulianGCalderon committed Apr 17, 2024
1 parent 65812c0 commit 5573d2c
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions crates/concrete_driver/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ pub fn main() -> Result<()> {
} => {
let name = name.unwrap_or_else(|| {
path.file_name()
.context("Failed to get project name")
.context("failed to get project name")
.unwrap()
.to_string_lossy()
.to_string()
Expand Down Expand Up @@ -324,7 +324,7 @@ fn build_command(profile: Option<String>, release: bool) -> Result<PathBuf> {
current_dir = if let Some(parent) = current_dir.parent() {
parent.to_path_buf()
} else {
bail!("Couldn't find Concrete.toml");
bail!("couldn't find Concrete.toml");
};
} else {
config_path = Some(current_dir.join("Concrete.toml"));
Expand All @@ -333,12 +333,12 @@ fn build_command(profile: Option<String>, release: bool) -> Result<PathBuf> {
}
let config_path = match config_path {
Some(x) => x,
None => bail!("Couldn't find Concrete.toml"),
None => bail!("couldn't find Concrete.toml"),
};
let base_dir = config_path
.parent()
.context("couldn't get config parent dir")?;
let mut config = File::open(&config_path).context("Failed to open Concrete.toml")?;
let mut config = File::open(&config_path).context("failed to open Concrete.toml")?;
let mut buf = String::new();
config.read_to_string(&mut buf)?;
let config: Config = toml::from_str(&buf).context("failed to parse Concrete.toml")?;
Expand All @@ -361,23 +361,23 @@ fn build_command(profile: Option<String>, release: bool) -> Result<PathBuf> {
config
.profile
.get(&profile)
.context("Couldn't get requested profile")?,
.context("couldn't get requested profile")?,
profile,
)
} else if release {
(
config
.profile
.get("release")
.context("Couldn't get profile: release")?,
.context("couldn't get profile: release")?,
"release".to_string(),
)
} else {
(
config
.profile
.get("dev")
.context("Couldn't get profile: dev")?,
.context("couldn't get profile: dev")?,
"dev".to_string(),
)
};
Expand Down

0 comments on commit 5573d2c

Please sign in to comment.