FCLT#58863 Generic SELECT iets duidelijkere foutmelding bij mld_t_uitvoertijd

svn path=/Website/trunk/; revision=43786
This commit is contained in:
Jos Groot Lipman
2019-08-14 11:39:27 +00:00
parent 560737bab4
commit c0feb09e91
2 changed files with 9 additions and 2 deletions

View File

@@ -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

View File

@@ -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;
}