From e9fb150880a3fc33bf07ef792b4e02a1d3cf5070 Mon Sep 17 00:00:00 2001 From: Isaac Connor Date: Wed, 14 Oct 2020 11:32:33 -0400 Subject: [PATCH] Improve error message when a row doesn't exist in the Monitor_Status table --- web/includes/Monitor.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/includes/Monitor.php b/web/includes/Monitor.php index 12da03c8a..cb3ee153a 100644 --- a/web/includes/Monitor.php +++ b/web/includes/Monitor.php @@ -158,7 +158,7 @@ class Monitor extends ZM_Object { FROM `Monitor_Status` WHERE `MonitorId`=?'; $row = dbFetchOne($sql, NULL, array($this->{'Id'})); if ( !$row ) { - Error('Unable to load Monitor record for Id='.$this->{'Id'}); + Warning('Unable to load Monitor status record for Id='.$this->{'Id'}.' using '.$sql); foreach ( $this->status_fields as $k => $v ) { $this->{$k} = $v; }