pub fn map_error<T, E: Error>( result: Result<T, E>, context: &str, ) -> EditorResult<T>
将错误转换为更具体的错误类型