improved error reporting for `runfile' option