Add error reporting to import document (closes #3786)