-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Protect RemoteLRS from exceptions in sendRequest
* This will cause exceptions from fopen and the one we cause for invalid status codes to not cause fatal error but instead return an LRS response with 'success' set to false and with a message in 'content', and in the fopen case allow detection that the request never actually made it to the LRS as 'response' itself will be empty * Add error handling for fopen to provide a more meaningful message when PHP is setup without track_errors being on (IOW capture the E_WARNING that is generated)
- Loading branch information
1 parent
3f8e1e0
commit d634afb
Showing
1 changed file
with
53 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters