Scan the code. Look up the code. If minor (ask here if in doubt), clear the code and carry on. If not minor, take to dealer for warranty repairs (do NOT clear the code).
If you read the code before taking to the dealer, you'll know if they are BSing you.