Skip to content
Snippets Groups Projects
Commit cb0874ef authored by Guylaine Prat's avatar Guylaine Prat
Browse files

Add trace for debug on CI platform

parent 85430ad4
No related branches found
No related tags found
No related merge requests found
Pipeline #488 failed
......@@ -18,8 +18,10 @@ package org.orekit.rugged.errors;
import org.hipparchus.geometry.euclidean.threed.Vector3D;
import java.io.File;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.PrintWriter;
import java.io.UnsupportedEncodingException;
import org.orekit.bodies.GeodeticPoint;
import org.orekit.frames.Transform;
......@@ -67,9 +69,13 @@ public class DumpManager {
} else {
try {
DUMP.set(new Dump(new PrintWriter(file, "UTF-8")));
} catch (IOException ioe) {
} catch (FileNotFoundException ioe) {
System.out.println("###### FileNotFoundException ");
throw new RuggedException(ioe, RuggedMessages.DEBUG_DUMP_ACTIVATION_ERROR,
file.getAbsolutePath(), ioe.getLocalizedMessage());
} catch (IOException ioe) {
throw new RuggedException(ioe, RuggedMessages.DEBUG_DUMP_ACTIVATION_ERROR,
file.getAbsolutePath(), ioe.getLocalizedMessage());
}
}
}
......
......@@ -235,8 +235,7 @@ public class DumpManagerTest {
public void testWriteError() throws URISyntaxException, IOException {
try {
File dump = tempFolder.newFile();
boolean isSuccess = dump.setReadOnly();
System.out.println("##### File created in read only success= " + isSuccess);
dump.setReadOnly();
DumpManager.activate(dump);
Assert.fail("an exception should have been thrown");
} catch (RuggedException re) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment