------------------------------------------------------------
revno: 6342
committer: Hieu <[email protected]>
branch nick: dhis2
timestamp: Thu 2012-03-22 13:47:56 +0700
message:
  SqlView - Showed feedback when validating the query.
modified:
  
dhis-2/dhis-services/dhis-service-administration/src/main/java/org/hisp/dhis/sqlview/jdbc/JdbcSqlViewExpandStore.java


--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk

Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to 
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
=== modified file 'dhis-2/dhis-services/dhis-service-administration/src/main/java/org/hisp/dhis/sqlview/jdbc/JdbcSqlViewExpandStore.java'
--- dhis-2/dhis-services/dhis-service-administration/src/main/java/org/hisp/dhis/sqlview/jdbc/JdbcSqlViewExpandStore.java	2012-03-01 08:45:42 +0000
+++ dhis-2/dhis-services/dhis-service-administration/src/main/java/org/hisp/dhis/sqlview/jdbc/JdbcSqlViewExpandStore.java	2012-03-22 06:47:56 +0000
@@ -203,9 +203,9 @@
         {
             jdbcTemplate.queryForList( sql );
         }
-        catch ( BadSqlGrammarException ex )
+        catch ( Exception ex )
         {
-            return ex.getMessage();
+            return ex.getCause().getMessage();
         }
 
         return "";

_______________________________________________
Mailing list: https://launchpad.net/~dhis2-devs
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp

Reply via email to