Skip to content
This repository was archived by the owner on Oct 22, 2019. It is now read-only.

Commit f15cade

Browse files
authored
Merge pull request #66 from buffcode/patch-1
Fix wrong output for invalid labels
2 parents 641af4e + dc73f3d commit f15cade

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Prometheus/Collector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public function __construct(Adapter $storageAdapter, $namespace, $name, $help, $
3232
$this->help = $help;
3333
foreach ($labels as $label) {
3434
if (!preg_match(self::RE_METRIC_LABEL_NAME, $label)) {
35-
throw new \InvalidArgumentException("Invalid label name: '" . $metricName . "'");
35+
throw new \InvalidArgumentException("Invalid label name: '" . $label . "'");
3636
}
3737
}
3838
$this->labels = $labels;

0 commit comments

Comments
 (0)