Commit 9014f48
committed
fix: remove the
If any exception was happening in `withHieDb`, the `post` action was
never called, leading to a stale `Indexing` message in the client.
By using `bracket`, we ensure that the `post` message is called in the
event of an exception, cleaning the confusing message in the client.
It does not change the well behaving of the indexing (i.e. if it was
crashing, it is still crashing), but at least user won't be confused by
a stale `Indexing` message.Indexing progress message when exeption in withHieDb1 parent 1edb489 commit 9014f48
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
902 | 902 | | |
903 | 903 | | |
904 | 904 | | |
905 | | - | |
906 | | - | |
| 905 | + | |
| 906 | + | |
907 | 907 | | |
908 | 908 | | |
909 | 909 | | |
| |||
0 commit comments