From 0469a72530c6c9bb080fd922db1295ff0643306c Mon Sep 17 00:00:00 2001 From: Ty Dunn Date: Thu, 15 Jun 2023 23:06:56 -0700 Subject: more rigorous js impl --- continuedev/src/continuedev/steps/core/core.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'continuedev/src') diff --git a/continuedev/src/continuedev/steps/core/core.py b/continuedev/src/continuedev/steps/core/core.py index bcff83f4..687d4eb0 100644 --- a/continuedev/src/continuedev/steps/core/core.py +++ b/continuedev/src/continuedev/steps/core/core.py @@ -343,7 +343,7 @@ def get_python_traceback(output: str) -> str: return None def get_javascript_traceback(output: str) -> str: - if "at " in output: - return output - else: - return None \ No newline at end of file + lines = output.splitlines("\n") + first_line = lines[0].split(": ") + if len(lines) > 0 and len(first_line[0]) > 0 and "at" in lines[1].lstrip(): + return output \ No newline at end of file -- cgit v1.2.3-70-g09d2