summaryrefslogtreecommitdiff
path: root/src/repository/models.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/repository/models.rs')
-rw-r--r--src/repository/models.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/repository/models.rs b/src/repository/models.rs
index 5b7b445..de82d45 100644
--- a/src/repository/models.rs
+++ b/src/repository/models.rs
@@ -225,7 +225,7 @@ impl Repository {
let commits_result =
Commit::create(pool.clone(), commits).await;
if let Err(e) = commits_result {
- panic!("{}", e);
+ return Err(e);
}
Ok(repo)