From 7926243de580ad9c62e1255cdc8a3d2cbb035b58 Mon Sep 17 00:00:00 2001 From: Squidly271 Date: Sat, 7 Oct 2023 09:43:20 -0400 Subject: [PATCH] Descriptive error messages on install_key --- emhttp/plugins/dynamix/scripts/install_key | 26 ++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/emhttp/plugins/dynamix/scripts/install_key b/emhttp/plugins/dynamix/scripts/install_key index e69eac287..74b6c156f 100755 --- a/emhttp/plugins/dynamix/scripts/install_key +++ b/emhttp/plugins/dynamix/scripts/install_key @@ -41,6 +41,32 @@ if (in_array($host,['keys.lime-technology.com','lime-technology.com'])) { } } else { write("ERROR: $return_var\n"); + switch($return_var) { + case 1: + write("Generic error code - Contact Support\n"); + break; + case 2: + write("Parse Error - Contact Support\n"); + break; + case 3: + write("File I/O error - Contact Support\n"); + break; + case 4: + write("Network Failure: Try setting static DNS addresses within Settings - Network Settings or Contact Support\n"); + break; + case 5: + write("SSL verification failure. Is the date & time set correctly? (Settings - Date & Time Settings) or Contact Support\n"); + break; + case 6: + write("Username/password authentication failure - Contact Support\n"); + break; + case 7: + write("Protocol error - Contact Support\n"); + break; + case 8: + write("Server issued an error response - Contact Support\n"); + break; + } } } else { write("ERROR, bad or missing key file URL: $url\n");