summaryrefslogtreecommitdiffstats
path: root/library/Graphite/Graphing/MetricsQuery.php
diff options
context:
space:
mode:
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;