Skulpt limitations on SyntaxError?

I faced the same problems with my project as well. Skulpt is very limiting when it comes to this. But here is a work around.

Don’t ask me the logic but when you do something like:

except SyntaxError as e:
        self.label_1.text=e

It will display you the line of error

Now if you wish to extract this string, you will have to do this

import anvil.js

dom_node=anvil.js.get_dom_node(self.label_1)
error=dom_node.innerText
1 Like