--- a/src/eric7/Project/CreateDialogCodeDialog.py Tue Apr 18 14:21:29 2023 +0200 +++ b/src/eric7/Project/CreateDialogCodeDialog.py Fri Apr 21 16:45:32 2023 +0200 @@ -217,11 +217,20 @@ if started and finished: output = proc.readAllStandardError() outText = str(output, "utf-8", "replace") - if "@@eric_start@@" in outText and "@@eric_end@@" in outText: + if "@@eric_start@@" in outText: + # it is something we sent via UicLoadUi[56].py + outText = outText.split("@@eric_start@@")[1] + ok = True + elif "@@eric_error@@" in outText: # it is something we sent via UicLoadUi[56].py - outText = outText.split("@@eric_start@@")[1].split("@@eric_end@@")[0] - if proc.exitCode() == 0: - ok = True + outText = outText.split("@@eric_error@@")[1] + ok = False + else: + ok = False + if "@@eric_end@@" in outText: + # it is something we sent via UicLoadUi[56].py + outText = outText.split("@@eric_end@@")[0] + if ok: uicText = outText.strip() else: EricMessageBox.critical(