Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Unverified Commit 1d41e415 authored by Tobias Kaminsky's avatar Tobias Kaminsky Committed by GitHub
Browse files

Merge pull request #32 from nextcloud/sso

fix bug that custom exceptions are not parsed (https://github.com/nex…
parents 2b70d60b 3d470d7d
Loading
Loading
Loading
Loading
+5 −5
Original line number Diff line number Diff line
@@ -216,9 +216,9 @@ public class NextcloudAPI {
    /**
     * The InputStreams needs to be closed after reading from it
     *
     * @param request
     * @return
     * @throws IOException
     * @param request {@link NextcloudRequest} request to be executed on server via Files app
     * @return InputStream answer from server as InputStream
     * @throws Exception or SSOException
     */
    public InputStream performNetworkRequest(NextcloudRequest request) throws Exception {
        InputStream os = null;
@@ -234,7 +234,7 @@ public class NextcloudAPI {
        // Handle Remote Exceptions
        if (exception != null) {
            if (exception.getMessage() != null) {
                parseNextcloudCustomException(exception);
                exception = parseNextcloudCustomException(exception);
            }
            throw exception;
        }
@@ -243,7 +243,7 @@ public class NextcloudAPI {


    /**
     * DO NOT CALL THIS METHOD DIRECTLY - use "performNetworkRequest(...)" instead
     * DO NOT CALL THIS METHOD DIRECTLY - use @link(performNetworkRequest) instead
     *
     * @param request
     * @return