on error, dump generated nim file to getTempDir()/nimterop/scratch/file<hash>.nim
on error:
* dump generated nim file to tempdir/nimterop/scratch/file<hash>.nim
* give link to that file it in error msg
* maybe also run nim check
