A man who says he was sickened by a box of raisins donated to a food program by Rhode Island's prison system can proceed with a lawsuit against the agency.

The state Supreme Court said Tuesday that a lower court judge erred by dismissing a 2006 lawsuit from Thomas Adams.

Adams alleged that he suffered nausea, vomiting and diarrhea after eating a box of raisins in October 2004. He says he found an insect larva and insect dung near the bottom of the box.

The raisins were stored at the Rhode Island Department of Corrections food distribution center. They were then distributed as part of a federal food program for needy residents. Adams got the raisins in a food giveaway by a Providence church.