More informative error message - include wrong value and possible correct options

This commit is contained in:
Nathan Gray 2012-03-21 21:27:54 +00:00
parent 04fe78762f
commit 8bc924699f

View File

@ -249,8 +249,8 @@ console.debug(_attrib);
{ {
if (et2_validTypes.indexOf(_attrib["type"]) < 0) if (et2_validTypes.indexOf(_attrib["type"]) < 0)
{ {
egw.debug("error", "Invalid type for attribute '" + _id + egw.debug("error", "Invalid type '" + _attrib["type"] + "' for attribute '" + _id +
"' supplied."); "' supplied. Valid types are ", et2_validTypes);
} }
} }