added error handling for a read call which i missed earlier
added error handling for a read call which i missed earlier

psychoschlumpf/libportage,larsuhartmann/libportage,psychoschlumpf/libportage,larsuhartmann/libportage