From 4b5d4b02c9b559b2661435e40d4882d3f6aba260 Mon Sep 17 00:00:00 2001 From: Mark Schouten Date: Tue, 9 Aug 2016 22:59:29 +0200 Subject: [PATCH] Fix bug in Exception() and clearify the error message. Closes #100 --- includes/class/Zone.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/class/Zone.php b/includes/class/Zone.php index d63ca21..ffc5588 100644 --- a/includes/class/Zone.php +++ b/includes/class/Zone.php @@ -240,7 +240,7 @@ class RRSet { public function addRecord($content, $disabled = FALSE, $setptr = FALSE) { foreach ($this->records as $record) { if ($record->content == $content) { - throw Exception("Record already exists"); + throw new Exception($this->name."/".$this->type." has duplicate records."); } }