Skip to content

Commit dd30d62

Browse files
committed
Update error prints
1 parent bdb4d09 commit dd30d62

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

operate/main.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -183,13 +183,13 @@ def main(model):
183183

184184
except ModelNotRecognizedException as e:
185185
print(
186-
f"{ANSI_GREEN}[Self-Operating Computer]{ANSI_RED} Error -> {e} {ANSI_RESET}"
186+
f"{ANSI_GREEN}[Self-Operating Computer]{ANSI_RED}[Error] -> {e} {ANSI_RESET}"
187187
)
188188
looping = False
189189
break
190190
except Exception as e:
191191
print(
192-
f"{ANSI_GREEN}[Self-Operating Computer]{ANSI_RED} Error -> {e} {ANSI_RESET}"
192+
f"{ANSI_GREEN}[Self-Operating Computer]{ANSI_RED}[Error] -> {e} {ANSI_RESET}"
193193
)
194194
looping = False
195195
break
@@ -223,10 +223,10 @@ def main(model):
223223
function_response = mouse_click(action_detail)
224224
else:
225225
print(
226-
f"{ANSI_GREEN}[Self-Operating Computer]\n{ANSI_RED} something went wrong :({ANSI_RESET}"
226+
f"{ANSI_GREEN}[Self-Operating Computer]{ANSI_RED}[Error] something went wrong :({ANSI_RESET}"
227227
)
228228
print(
229-
f"{ANSI_GREEN}[Self-Operating Computer]\n{ANSI_RED} AI response was:\n{response}{ANSI_RESET}"
229+
f"{ANSI_GREEN}[Self-Operating Computer]{ANSI_RED}[Error] AI response\n{ANSI_RESET}{response}"
230230
)
231231
looping = False
232232
break

0 commit comments

Comments
 (0)