input: emit diagnostics when file import fails fatally