Skip to content

Commit

Permalink
Update src/db.rs
Browse files Browse the repository at this point in the history
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
  • Loading branch information
arkanoider and coderabbitai[bot] authored Dec 30, 2024
1 parent 756fd08 commit a96f27e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ fn create_mostro_db() -> Result<Vec<String>> {
if let Some(file_name) = file.file_name().to_str() {
if file_name.ends_with(".sql") {
let table_content = std::fs::read_to_string(migrations_root().join(file_name))
.expect("Failed to read file");
.map_err(|e| anyhow::anyhow!("Failed to read file: {}", e))?;
tables.push(table_content);
}
}
Expand Down

0 comments on commit a96f27e

Please sign in to comment.