tmlab / tmql

Automatically exported from code.google.com/p/tmql
1 stars 0 forks source link

better Error-messages #44

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
On executing an UPDATE Query without tmql_engine.enable_updates the error 
message should point into this direction.
Current Message is: "Parser tree is invalid, at least one expression are not 
allowed."

Original issue reported on code.google.com by michael....@gmail.com on 8 Mar 2011 at 2:42

GoogleCodeExporter commented 9 years ago
What kind of message do you expect or prefer?

Original comment by Sven.Kro...@googlemail.com on 8 Mar 2011 at 2:43

GoogleCodeExporter commented 9 years ago
The message sounds more like one is using a expression not allowed at all - 
maybe better (if it actually is a update-statement):
"At least one expression is not allowed because update statements are currently 
not enabled"

Original comment by michael....@gmail.com on 8 Mar 2011 at 2:47

GoogleCodeExporter commented 9 years ago
In the latest snapshot, the error message contains the name of the expression 
not allowed. The reason why it is not allowed cannot be added to the error 
message because it is unknown, at the moment the exception is throwing.

Original comment by Sven.Kro...@googlemail.com on 18 Mar 2011 at 8:55