Fix asset pipeline bug, and add the code I forgot to include for adding error class correctly.