Wide coverage demo app: show an error message even if the error string is empty

This commit is contained in:
hallgren
2014-04-06 23:44:31 +00:00
parent ea67953012
commit a0adabb3a1

View File

@@ -94,7 +94,7 @@ wc.translate=function() {
if(wc.serial==current) {
if(tra.length>=1) {
var r=tra[0]
if(r.error) show_error(tra[0].error)
if(r.error!=undefined) show_error(tra[0].error)
else if(r.linearizations) {
r.text=r.linearizations[0].text
// Two server requests in parallel: