Update of /cvsroot/fink/web/pdb
In directory sc8-pr-cvs17:/tmp/cvs-serv19959
Modified Files:
Tag: redesign_pdb
browse.php
Log Message:
More meaningfull error messages
Index: browse.php
===================================================================
RCS file: /cvsroot/fink/web/pdb/browse.php,v
retrieving revision 1.1.2.25
retrieving revision 1.1.2.26
diff -u -d -r1.1.2.25 -r1.1.2.26
--- browse.php 31 Aug 2007 19:39:56 -0000 1.1.2.25
+++ browse.php 6 Sep 2007 12:52:38 -0000 1.1.2.26
@@ -115,7 +115,7 @@
$q .= "ORDER BY priority DESC";
$qdist = mysql_query($q, $dbh);
if (!$qdist) {
- die('<p><b>error during query:</b> '.mysql_error().'</p>');
+ die('<p class="attention"><b>Error in db query (distribution):</b>
'.mysql_error().'</p>');
}
$dist_values[''] = 'Any';
while ($dist = mysql_fetch_array($qdist)) {
@@ -140,7 +140,7 @@
$query = "SELECT * FROM sections ORDER BY name ASC";
$rs = mysql_query($query, $dbh);
if (!$rs) {
- print '<p><b>error during query:</b> '.mysql_error().'</p>';
+ print '<p class="attention"><b>Error in db query (sections):</b>
'.mysql_error().'</p>';
} else {
$seccount = mysql_num_rows($rs);
while ($row = mysql_fetch_array($rs)) {
@@ -393,7 +393,7 @@
$rs = mysql_query($query, $dbh);
$time_sql_end = microtime_float();
if (!$rs) {
- print '<p><b>error during query:</b> '.mysql_error().'</p>';
+ print '<p class="attention"><b>Error in db query (list packages):</b>
'.mysql_error().'</p>';
} else {
$count = mysql_num_rows($rs);
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Fink-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fink-commits