Skip to content
This repository has been archived by the owner on Oct 14, 2023. It is now read-only.

Commit

Permalink
Bugfix -> fixed exception on request fail
Browse files Browse the repository at this point in the history
  • Loading branch information
EinfacheSache committed Sep 7, 2023
1 parent f1f3d21 commit 3d00b07
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
package de.cubeattack.neoprotect.core.request;

import com.squareup.okhttp.OkHttpClient;
import com.squareup.okhttp.Request;
import com.squareup.okhttp.RequestBody;
import com.squareup.okhttp.Response;
import com.squareup.okhttp.*;
import de.cubeattack.neoprotect.core.Config;
import de.cubeattack.neoprotect.core.Core;

Expand Down Expand Up @@ -45,6 +42,7 @@ protected Response callRequest(Request request) {
core.severe(request + " failed cause (" + connectionException + ")");
}else
core.debug(request + " failed cause (" + connectionException + ")");
return new Response.Builder().request(request).protocol(Protocol.HTTP_2).code(500).message(connectionException.getMessage()).build();
} catch (Exception exception) {
core.severe(exception.getMessage(), exception);
}
Expand Down

0 comments on commit 3d00b07

Please sign in to comment.