friendlier error message when you select nothing, RT#6445
authorivan <ivan>
Thu, 29 Oct 2009 23:37:49 +0000 (23:37 +0000)
committerivan <ivan>
Thu, 29 Oct 2009 23:37:49 +0000 (23:37 +0000)
httemplate/edit/bulk-cust_main_county.html

index bb57fc5..93d9444 100644 (file)
@@ -85,7 +85,7 @@ if ( $cgi->param('error') ) {
 } else {
   my($query) = $cgi->keywords;
   $query =~ /^([\d,]+)$/
-    or die 'Nothing selected'; #XXX better error when nothing selected
+    or $m->comp('/elements/errorpage-popup.html', 'Nothing selected');
   @taxnum = split(',', $1);
 }