throw error instead

This commit is contained in:
Chirag Aggarwal
2025-11-10 18:23:15 +05:30
parent fc330dad29
commit bea79ba134
+1 -2
View File
@@ -304,8 +304,7 @@ class StatsUsage extends Action
// Skip invalid metrics
if (!$this->isValidMetric($metricKey)) {
Console::warning('[' . DateTime::now() . '] Skipping unknown metric: ' . $metricKey);
continue;
throw new Exception('Invalid metric key: ' . $metricKey);
}
$this->keys++;