summaryrefslogtreecommitdiffstats
path: root/dozentenmodulserver/src/main
diff options
context:
space:
mode:
authorSimon Rettberg2025-07-02 14:51:25 +0200
committerSimon Rettberg2025-07-02 14:51:25 +0200
commitc86ca1e421e4d639f80187d735b7c71d9207461a (patch)
treef6c82ffb2ed0b2f5694579d7012ea3c90af45988 /dozentenmodulserver/src/main
parent[server] Thrown exceptions changed in recent Java versions (diff)
downloadtutor-module-master.tar.gz
tutor-module-master.tar.xz
tutor-module-master.zip
[server] Missed two IOExceptionsHEADmaster
Diffstat (limited to 'dozentenmodulserver/src/main')
-rw-r--r--dozentenmodulserver/src/main/java/org/openslx/bwlp/sat/web/WebRpc.java5
1 files changed, 2 insertions, 3 deletions
diff --git a/dozentenmodulserver/src/main/java/org/openslx/bwlp/sat/web/WebRpc.java b/dozentenmodulserver/src/main/java/org/openslx/bwlp/sat/web/WebRpc.java
index 8f35a0e3..73c920c7 100644
--- a/dozentenmodulserver/src/main/java/org/openslx/bwlp/sat/web/WebRpc.java
+++ b/dozentenmodulserver/src/main/java/org/openslx/bwlp/sat/web/WebRpc.java
@@ -1,7 +1,6 @@
package org.openslx.bwlp.sat.web;
import java.io.ByteArrayInputStream;
-import java.io.IOException;
import java.io.PrintStream;
import java.io.PrintWriter;
import java.nio.charset.StandardCharsets;
@@ -94,7 +93,7 @@ public class WebRpc {
Files.find(Configuration.getVmStoreProdPath().toPath(), 8,
(filePath, fileAttr) -> fileAttr.isRegularFile() && fileAttr.creationTime().toMillis() < minBirthTime)
.forEach((fileName) -> checkFile(fileName, orphanedFiles, baseLen, known, matches));
- } catch (IOException e) {
+ } catch (Exception e) {
return WebServer.internalServerError(e.toString());
}
if (del) {
@@ -258,7 +257,7 @@ public class WebRpc {
try {
baos.write(("\n\n-----------------------------------------\nTestergebnis: "
+ (ret ? "" : "nicht ") + "erfolgreich").getBytes(StandardCharsets.UTF_8));
- } catch (IOException e) {
+ } catch (Exception e) {
}
return new NanoHTTPD.Response(NanoHTTPD.Response.Status.OK, "text/plain; charset=utf-8",
new ByteArrayInputStream(baos.toByteArray()));