From 45344d1b756ef3d38a7cdf9f9f57084e4551d3ff Mon Sep 17 00:00:00 2001 From: Adam Brodziak Date: Thu, 21 Jan 2021 22:59:57 +0100 Subject: [PATCH] Put current branch name in exception Hopefully it will provide more context to debug #361 issue. --- lib/core/git_repo.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/core/git_repo.dart b/lib/core/git_repo.dart index def2eb51..dd6b4b7f 100644 --- a/lib/core/git_repo.dart +++ b/lib/core/git_repo.dart @@ -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; }