From bd0561bfae328887a7ebff110e9da41f7568e23b Mon Sep 17 00:00:00 2001 From: Ivan Maslov Date: Sun, 17 Nov 2019 10:43:37 +0300 Subject: [PATCH] #StudioAddMessageModalWhenErrorOnActivityRun --- Sources/pyOpenRPA/Studio/Web/Index.xhtml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Sources/pyOpenRPA/Studio/Web/Index.xhtml b/Sources/pyOpenRPA/Studio/Web/Index.xhtml index db93f655..218df737 100644 --- a/Sources/pyOpenRPA/Studio/Web/Index.xhtml +++ b/Sources/pyOpenRPA/Studio/Web/Index.xhtml @@ -586,8 +586,10 @@ var lDataJSON=JSON.parse(lData) $(".gui-result").html(JSON.stringify(lDataJSON.Result)) ///Показать ошибку, если таковая возникла - if (lDataJSON["ErrorFlag"]) { - mGlobal.ShowModal("GUI Error",lDataJSON.ErrorMessage+" \nTraceback: "+lDataJSON.ErrorTraceback); + for (i = 0; i< lDataJSON.length; i++) { + if (lDataJSON[i]["ErrorFlag"]) { + mGlobal.ShowModal("GUI Error",lDataJSON[i].ErrorMessage+" \nTraceback: "+lDataJSON[i].ErrorTraceback); + } } }, dataType: "text"