Open compaluca opened 1 year ago
I think raising an error in the framework is still the right approach. It's possible that we would be fine in some cases, like here, where the error occurs in the post-processing passes.
But if it appears in earlier passes, information on which our queries depend might get lost and it's hard to check that.
Spotting when the exception was precisely raised can be challenging, especially if we just used the joern cli. Two questions:
checkdiscoveryrules
on pattern JS 1, an error is produced./out/test.bin
) an exception is raised by Joern.Error in CPG generation
(see OUT2)OUT1: Example in Joern console
OUT2: Example as framework command output