File tree Expand file tree Collapse file tree 2 files changed +5
-7
lines changed
Expand file tree Collapse file tree 2 files changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -3270,7 +3270,7 @@ private boolean loadCacheFile()
32703270 HttpURLConnection httpConn = (HttpURLConnection ) myURLConn ;
32713271 if (isSDURL ) {
32723272 if (Sage .DBG ) System .out .println ("MetaImage.loadCacheFile: HttpURLConnection response found for SD image - type:" + httpConn .getContentType () + " response code:" + httpConn .getResponseCode ());
3273- if (httpConn . getContentType ()== "application/json" ){
3273+ if ("application/json" . equals ( httpConn . getContentType ()) ){
32743274 //SD returned an error which is within the returned json
32753275 //TODO: remove after testing
32763276 if (Sage .DBG ) System .out .println ("MetaImage.loadCacheFile: Prior to ErrorHandling" );
Original file line number Diff line number Diff line change @@ -99,13 +99,11 @@ public static void handleSDJsonErrorFromHttpResponse(HttpURLConnection httpConn)
9999
100100 if (Sage .DBG ) System .out .println ("SDUtils.handleSDJsonErrorFromHttpResponse: Error code:" + code );
101101
102- SDErrors .throwErrorForCode (code );
103- if (Sage .DBG ) System .out .println ("SDUtils.handleSDJsonErrorFromHttpResponse: AFTER throwing error for code:" + code );
102+ //SDErrors.throwErrorForCode(code);
103+ if (Sage .DBG ) System .out .println ("SDUtils.handleSDJsonErrorFromHttpResponse: Error:" + code + " : " + SDErrors .getErrorForCode (code ));
104+ }else {
105+ if (Sage .DBG ) System .out .println ("SDUtils.handleSDJsonErrorFromHttpResponse: Unknown Error" );
104106 }
105-
106- if (Sage .DBG ) System .out .println ("SDUtils.handleSDJsonErrorFromHttpResponse: PRIOR to throwing UNKOWN" );
107- throw new SDException (SDErrors .SAGETV_UNKNOWN );
108-
109107 }
110108
111109 /**
You can’t perform that action at this time.
0 commit comments