Put current branch name in exception

Hopefully it will provide more context to debug #361 issue.
This commit is contained in:
Adam Brodziak
2021-01-21 22:59:57 +01:00
committed by Vishesh Handa
parent c957d3ee07
commit 45344d1b75

View File

@ -187,7 +187,7 @@ class GitNoteRepository {
var branch = await repo.currentBranch();
var branchConfig = repo.config.branch(branch);
if (branchConfig == null) {
logExceptionWarning(Exception("Current Branch null"), StackTrace.current);
logExceptionWarning(Exception("Branch '$branch' not in config"), StackTrace.current);
return;
}