Browse Source

update invite to return code of unsuccessful pertaining to #884

causefx 8 years ago
parent
commit
af85293494
1 changed files with 1 additions and 2 deletions
  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;