Skip to content

Commit

Permalink
Use default language levels, or use a number tip (#6037)
Browse files Browse the repository at this point in the history
  • Loading branch information
gitressa authored Jun 19, 2024
1 parent e6d1bb4 commit af91fc7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Commands/core/WatchdogCommands.php
Original file line number Diff line number Diff line change
Expand Up @@ -325,7 +325,7 @@ protected function where(?string $type = null, $severity = null, ?string $filter
foreach ($severities as $key => $value) {
$levels[] = "$value($key)";
}
$msg = "Unknown severity level: !severity\nValid severity levels are: !levels.";
$msg = "Unknown severity level: !severity\nValid severity levels are: !levels.\nEither use the default language levels, or use a number.";
throw new \Exception(dt($msg, ['!severity' => $severity, '!levels' => implode(', ', $levels)]));
}
$conditions[] = "severity $operator :severity";
Expand Down

0 comments on commit af91fc7

Please sign in to comment.