]> jfr.im git - irc/unrealircd/unrealircd-webpanel.git/blobdiff - connection.php
Add ability to add and delete access to the panel
[irc/unrealircd/unrealircd-webpanel.git] / connection.php
index 985d3fb0af313eae5b15cff1c01fb20c468d54ce..ba17c905696b65032f52db248f2075c39b86eceb 100644 (file)
@@ -20,6 +20,12 @@ try {
                        $api_login,
                        Array("tls_verify"=>$tls_verify)
                );
-} catch (Exception $e) {
-               die("Unable to connect to UnreaIRCd<br>");
+}
+catch (Exception $e)
+{
+       echo "Unable to connect to UnrealIRCd: ".$e->getMessage() . "<br><br>";
+       echo "Verify your connection details in config.php (rpc user, rpc password, host) and ".
+            "verify your UnrealIRCd configuration (listen block with listen::options::rpc and ".
+            "an rpc-user block with the correct IP allowed and the correct username and password).";
+       throw $e;
 }