Explorar o código

update invite to return code of unsuccessful pertaining to #884

causefx %!s(int64=8) %!d(string=hai) anos
pai
achega
af85293494
Modificáronse 1 ficheiros con 1 adicións e 2 borrados
  1. 1 2
      api/plugins/invites.php

+ 1 - 2
api/plugins/invites.php

@@ -289,12 +289,11 @@ function inviteAction($username, $action = null, $type = null)
 								return false;
 								break;
 							default:
-								writeLog('error', 'Plex Invite Function - An error occured', $username);
+								writeLog('error', 'Plex Invite Function - An error occurred [' . $response->status_code . ']', $username);
 								return false;
 								break;
 						}
 					}
-					return false;
 				} catch (Requests_Exception $e) {
 					writeLog('error', 'Plex Invite Function - Error: ' . $e->getMessage(), 'SYSTEM');
 					return false;