Commit 328f8ef
committed
Handles potential errors when retrieving the active repository
Addresses a scenario where the active repository cannot be retrieved,
which commonly occurs when the currently open file is not part of a
repository.
A try-catch block is added to gracefully handle this situation,
logging the error and setting the active repository to undefined.
(#4224)1 parent 8306be1 commit 328f8ef
1 file changed
+10
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1616 | 1616 | | |
1617 | 1617 | | |
1618 | 1618 | | |
1619 | | - | |
| 1619 | + | |
| 1620 | + | |
| 1621 | + | |
| 1622 | + | |
| 1623 | + | |
| 1624 | + | |
| 1625 | + | |
| 1626 | + | |
| 1627 | + | |
| 1628 | + | |
1620 | 1629 | | |
1621 | 1630 | | |
1622 | 1631 | | |
| |||
0 commit comments