diff --git a/view/list.php b/view/list.php
index b54bfc560ad61a8941e6d1d652b27a482d39239c..198050eb0f97c218a365fc501208e95445fdc77a 100644
--- a/view/list.php
+++ b/view/list.php
@@ -3,7 +3,15 @@
     <div class="page-header">
         <h1><?php echo $list->getTitle(); ?></h1>
     </div>
-    <?php try { ?>
+    <?php 
+    $ok = true;
+    try { 
+        $list->getLabels();
+    } catch (Exception $e) { 
+        echo $e->getMessage();
+        $ok = false;
+    } ?>
+    <?php if($ok) { ?>
     <table class="table">
         <thead>
             <?php foreach($list->getLabels() as $field): ?>
@@ -22,7 +30,5 @@
             <?php endforeach; ?>
         </tbody>
     </table>
-    <?php } catch (Exception $e) { 
-        //echo $e->getMessage();
-    } ?>
+    <?php } ?>
 </div>
\ No newline at end of file