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

Commit e5ac8610 authored by David Luhmer's avatar David Luhmer
Browse files

fix bug that custom exceptions are not parsed...

fix bug that custom exceptions are not parsed (https://github.com/nextcloud/news-android/issues/655)
parent 2c86ebea
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -215,7 +215,7 @@ public class NextcloudAPI {
     * The InputStreams needs to be closed after reading from it
     * @param request
     * @return
     * @throws IOException
     * @throws Exception or SSOException
     */
    public InputStream performNetworkRequest(NextcloudRequest request) throws Exception {
        InputStream os = null;
@@ -231,7 +231,7 @@ public class NextcloudAPI {
        // Handle Remote Exceptions
        if(exception != null) {
            if(exception.getMessage() != null) {
                parseNextcloudCustomException(exception);
                exception = parseNextcloudCustomException(exception);
            }
            throw exception;
        }