Skip to content

Commit

Permalink
catch KryoException in Ignore class
Browse files Browse the repository at this point in the history
  • Loading branch information
ivonx committed Jun 12, 2019
1 parent ac79be0 commit f925793
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/main/java/de/retest/recheck/cli/subcommands/Ignore.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import com.esotericsoftware.kryo.KryoException;

import de.retest.recheck.cli.PreCondition;
import de.retest.recheck.cli.RecheckCli;
import de.retest.recheck.cli.TestReportUtil;
Expand Down Expand Up @@ -83,6 +85,9 @@ public void run() {
saveRecheckIgnore();
} catch ( final IOException e ) {
logger.error( "An error occurred while loading the test report!", e );
} catch ( final KryoException e ) {
logger.error( "The report was created with another, incompatible recheck version.\r\n"
+ "Please, use the same recheck version to load a report with which it was generated." );
}
}
}
Expand Down

0 comments on commit f925793

Please sign in to comment.