python wants a file, not a directory (closes #3057)
WIP: [js] wrap thrown objects that are not js.Error and save call stack (closes #2854)