From b006c1040a48bf4d8866ab764a86d56cdb0f46f5 Mon Sep 17 00:00:00 2001 From: Tim Wilkinson Date: Wed, 22 Jun 2022 11:57:16 -0700 Subject: [PATCH] Stop map update claiming success when it actually fails --- files/www/cgi-bin/setup | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/files/www/cgi-bin/setup b/files/www/cgi-bin/setup index 728fd4b6..1d6e9b78 100755 --- a/files/www/cgi-bin/setup +++ b/files/www/cgi-bin/setup @@ -274,11 +274,11 @@ if parms.button_uploaddata then local newsi = string.format("%s,\"olsr\": %s}", si, topo) -- PUT it to the server - local upcurl = os.execute("curl -H 'Accept: application/json' -X PUT -d '" .. newsi .. "' http://data.arednmesh.org/sysinfo >/dev/null 2>&1") + local upcurl = os.execute("curl -f -H 'Accept: application/json' -X PUT -d '" .. newsi .. "' http://data.arednmesh.org/sysinfo >/dev/null 2>&1") if upcurl == 0 then out("AREDN online map updated") else - err("ERROR: Cannot update online map. Please ensure this node has access to the internet."); + err("ERROR: Cannot update online map."); end end