Exemple #1
0
        void OnCssError(object sender, CssErrorEventArgs e)
        {
            ContextError error = e.Error;
            // ignore severity values greater than our severity level
            if (error.Severity <= m_warningLevel)
            {
                // we found an error
                m_errorsFound = true;

                WriteError(error.ToString());
            }
        }
 /// <summary>
 /// Parsing error occured - event handler.
 /// </summary>
 private void parser_CssError(object sender, CssErrorEventArgs e)
 {
     // Do not minify in the case of parse exception and log the error
     minificationError = e.Exception;
 }
 private void OnCssError(object sender, CssErrorEventArgs e)
 {
     ContextError error = e.Error;
     if (error.Severity <= WarningLevel)
     {
         m_errorList.Add(error);
     }
 }