I'm not surprised the check engine light came on. If the gas cap is not tight then air is getting into the fuel system which sets off the check engine light.
Look to see if the gas cap is cracked. Even a small crack would alert the system that their is a leak. If you see a crack, try replacing the cap.
〉 Answered on Mar 26th, 2015 by Amy Mattinat, Owner and Author at Auto Craftsmen Ltd
The light will either go off after a drive cycle, which could be up to 150 miles, or you could go to a shop and have them clear it for you. It will have to be be cleared to see if the problem recurs. If it does not come back on after being cleared, you do not have a problem.
〉 Answered on Mar 26th, 2015 by Gail Dunn, Owner at Women's Automotive Connection
Check engine light is not a gas cap light and can be on for millions of reasons. A mechanic needs to plug into your ECU & scan it for codes. Shop around some places do it for free and can give you an estimate to repair.
〉 Answered on Mar 26th, 2015 by Gelina Aquilina, Service Advisor / Mechanic at