summaryrefslogtreecommitdiffstats
path: root/library/Graphite/Graphing/MetricsQuery.php
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-14 13:21:35 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-14 13:21:35 +0000
commitcddcdba3c9be7e32454d0c54efd1d60e7cef7518 (patch)
tree485d573becbe08ff71189381739483cdb57cf949 /library/Graphite/Graphing/MetricsQuery.php
parentAdding upstream version 1.2.2. (diff)
downloadicingaweb2-module-graphite-upstream/1.2.4.tar.xz
icingaweb2-module-graphite-upstream/1.2.4.zip
Adding upstream version 1.2.4.upstream/1.2.4upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'library/Graphite/Graphing/MetricsQuery.php')
-rw-r--r--library/Graphite/Graphing/MetricsQuery.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/Graphite/Graphing/MetricsQuery.php b/library/Graphite/Graphing/MetricsQuery.php
index da05c17..93d0c90 100644
--- a/library/Graphite/Graphing/MetricsQuery.php
+++ b/library/Graphite/Graphing/MetricsQuery.php
@@ -71,7 +71,7 @@ class MetricsQuery implements Queryable, Filterable, Fetchable
try {
$this->base = $target instanceof MacroTemplate ? $target : new MacroTemplate((string) $target);
} catch (InvalidArgumentException $e) {
- throw new InvalidArgumentException('Bad target', $e);
+ throw new InvalidArgumentException('Bad target', $e->getCode(), $e);
}
return $this;