We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 28550f7 commit 25c07a8Copy full SHA for 25c07a8
src/components/commit.rs
@@ -135,7 +135,17 @@ impl CommitComponent {
135
return;
136
}
137
138
- sync::commit(CWD, &self.msg).unwrap();
+ if let Err(e) = sync::commit(CWD, &self.msg) {
139
+ error!("commit error: {}", &e);
140
+ self.queue.borrow_mut().push_back(
141
+ InternalEvent::ShowMsg(format!(
142
+ "commit failed:\n{}",
143
+ &e
144
+ )),
145
+ );
146
+ return;
147
+ }
148
+
149
if let HookResult::NotOk(e) =
150
sync::hooks_post_commit(CWD).unwrap()
151
{
0 commit comments