diff options
| author | spider@app1 <spiderr@bitweaver.org> | 2017-07-11 14:53:03 -0400 |
|---|---|---|
| committer | spider@app1 <spiderr@bitweaver.org> | 2017-07-11 14:53:03 -0400 |
| commit | 3440dec2706099dfee02cdf815f9d1588abbe525 (patch) | |
| tree | 0a1dc54af59450893b69d33dbe30e106c9291d40 /hauth | |
| parent | 0f56083ce62de39dd44aa433e8d2757d720c340e (diff) | |
| download | users-3440dec2706099dfee02cdf815f9d1588abbe525.tar.gz users-3440dec2706099dfee02cdf815f9d1588abbe525.tar.bz2 users-3440dec2706099dfee02cdf815f9d1588abbe525.zip | |
wrap hauth in try/catch
Diffstat (limited to 'hauth')
| -rw-r--r-- | hauth/index.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/hauth/index.php b/hauth/index.php index 1c70fda..43cd3b6 100644 --- a/hauth/index.php +++ b/hauth/index.php @@ -14,4 +14,8 @@ require_once( EXTERNAL_LIBS_PATH . 'facebook/src/Facebook/autoload.php' ); require_once( "Hybrid/Auth.php" );
require_once( "Hybrid/Endpoint.php" );
-Hybrid_Endpoint::process();
+try {
+ Hybrid_Endpoint::process();
+} catch( Exception $e ) {
+ $gBitSystem->fatalError( $e->getMessage(), NULL, NULL, HttpStatusCodes::HTTP_UNAUTHORIZED );
+}
|
