mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-01-19 09:30:44 +00:00
Give a useful error message if no pages found.
This commit is contained in:
parent
00932f72b0
commit
d7c08c9ad1
@ -115,6 +115,9 @@ my @row = $query->fetchrow();
|
||||
if ($row[0] > 10) {
|
||||
Punt("Sorry; you selected $row[0] pages, but I can only graph up to 10.");
|
||||
}
|
||||
if ($row[0] < 1) {
|
||||
Punt("Sorry; I could not find any pages matching what you specified. (Page names start with a leading /, like '/news.html'.)");
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user