mirror of
https://github.com/GitJournal/GitJournal.git
synced 2025-06-26 16:46:51 +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 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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user