ProxymanApp / ProxymanApp/Proxyman

[Bug] Scripting doesn't properly show the syntax error

Open
#1,311 1 comment 0 reactions 1 assignee View on GitHub

@NghiaTranUIT is already working on this.

Since Jul 31, 2022.

✅ Done bug
Dominant language
No language data
Stars
7k
Forks
237
PR merge metrics
No merged PRs in 30d

Description

Description

If we use async func for the scripting, the app doesn't display the error.

///
async function onResponse(context, url, request, response) {
  // ❌ Syntax error here. $PATH_123 is not defined!
  const data = $PATH_123;  

  // Done
  return response;
}
Screen Shot 2022-07-31 at 09 22 47 ### Expected behavior - Proxyman Console Log should properly display the error message from JavascriptCore
Versions:
  • Proxyman 3.7.0
  • macOS 12.5

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.