[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Librefm-commits] [1902] better error reporting
From: |
Clint Adams |
Subject: |
[Librefm-commits] [1902] better error reporting |
Date: |
Wed, 03 Jun 2009 14:50:24 +0000 |
Revision: 1902
http://svn.sv.gnu.org/viewvc/?view=rev&root=librefm&revision=1902
Author: clint
Date: 2009-06-03 14:50:24 +0000 (Wed, 03 Jun 2009)
Log Message:
-----------
better error reporting
Modified Paths:
--------------
trunk/nixtape/user-stats.php
Modified: trunk/nixtape/user-stats.php
===================================================================
--- trunk/nixtape/user-stats.php 2009-06-03 14:50:21 UTC (rev 1901)
+++ trunk/nixtape/user-stats.php 2009-06-03 14:50:24 UTC (rev 1902)
@@ -55,8 +55,8 @@
try {
$smarty->assign('toptracks', $user->getTopTracks(40));
} catch (exception $e) {
- $smarty->assign('error', 'Error!');
- $smarty->assign('details', 'Couldn\'t get your top tracks!');
+ $smarty->assign('error', 'Couldn\'t get your top tracks!');
+ $smarty->assign('details', $e->getMessage());
$smarty->display('error.tpl');
die();
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Librefm-commits] [1902] better error reporting,
Clint Adams <=