summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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)