diff options
author | Ty Dunn <ty@tydunn.com> | 2023-06-15 23:06:56 -0700 |
---|---|---|
committer | Ty Dunn <ty@tydunn.com> | 2023-06-15 23:06:56 -0700 |
commit | ae469f20280a1a8377fdc1e86548af3743dd40df (patch) | |
tree | f3a0e35b6d0e1692959e639b915ff7d14059364d /continuedev/src | |
parent | a515179c6b8afecc0a691d14d2e15d11422e7652 (diff) | |
download | sncontinue-ae469f20280a1a8377fdc1e86548af3743dd40df.tar.gz sncontinue-ae469f20280a1a8377fdc1e86548af3743dd40df.tar.bz2 sncontinue-ae469f20280a1a8377fdc1e86548af3743dd40df.zip |
more rigorous js impl
Diffstat (limited to 'continuedev/src')
-rw-r--r-- | continuedev/src/continuedev/steps/core/core.py | 8 |
1 files changed, 4 insertions, 4 deletions
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 |