File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
src/org/opensolaris/opengrok/index Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -473,6 +473,10 @@ public void update() throws IOException {
473
473
} catch (IOException e ) {
474
474
finishingException = e ;
475
475
}
476
+ } catch (RuntimeException ex ) {
477
+ LOGGER .log (Level .SEVERE ,
478
+ "Failed with unexpected RuntimeException" , ex );
479
+ throw ex ;
476
480
} finally {
477
481
Ctags finishingCtags = ctags ;
478
482
ctags = null ;
@@ -1372,7 +1376,7 @@ private void finishWriting() throws IOException {
1372
1376
// rollback() regardless of success.
1373
1377
hasPendingCommit = false ;
1374
1378
writer .commit ();
1375
- } catch (IOException e ) {
1379
+ } catch (RuntimeException | IOException e ) {
1376
1380
if (hasPendingCommit ) writer .rollback ();
1377
1381
LOGGER .log (Level .WARNING ,
1378
1382
"An error occured while finishing writer and completer" , e );
You can’t perform that action at this time.
0 commit comments