FCLT#58863 Generic SELECT iets duidelijkere foutmelding bij mld_t_uitvoertijd
svn path=/Website/trunk/; revision=43786
This commit is contained in:
@@ -45,7 +45,10 @@ function model_generic_select(sql, autfunction)
|
||||
}
|
||||
catch (e)
|
||||
{
|
||||
api2.error(500, e.description);
|
||||
var msg = e.description;
|
||||
if (msg.match('^ROW\-00004')) // ROW-00004: Invalid column datatype
|
||||
msg += '\nHint: Query should not contain mld_t_uitvoertijd columns';
|
||||
api2.error(500, msg);
|
||||
}
|
||||
|
||||
// fields maken
|
||||
|
||||
@@ -98,7 +98,11 @@ var showall = getFParamInt("showall", 0) == 1;
|
||||
}
|
||||
catch (e)
|
||||
{
|
||||
var message_bar = "<div class='message'><i style='color:red' class='fa fa-warning fa-lg'></i> " + safe.html(e.description) + "</div>";
|
||||
var msg = e.description;
|
||||
if (msg.match('^ROW\-00004')) // ROW-00004: Invalid column datatype
|
||||
msg += '\nHint: Query should not contain mld_t_uitvoertijd columns';
|
||||
|
||||
var message_bar = "<div class='message'><i style='color:red' class='fa fa-warning fa-lg'></i> " + safe.html(msg) + "</div>";
|
||||
Response.Write(message_bar);
|
||||
Response.End;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user