mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-06-27 09:06:43 +08:00
Put current branch name in exception
Hopefully it will provide more context to debug #361 issue.
This commit is contained in:

committed by
Vishesh Handa

parent
c957d3ee07
commit
45344d1b75
@ -187,7 +187,7 @@ class GitNoteRepository {
|
|||||||
var branch = await repo.currentBranch();
|
var branch = await repo.currentBranch();
|
||||||
var branchConfig = repo.config.branch(branch);
|
var branchConfig = repo.config.branch(branch);
|
||||||
if (branchConfig == null) {
|
if (branchConfig == null) {
|
||||||
logExceptionWarning(Exception("Current Branch null"), StackTrace.current);
|
logExceptionWarning(Exception("Branch '$branch' not in config"), StackTrace.current);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user