                     // Process expression
                     let (operator, error) = findOperatorInExpression(expression)
                     if error {
-                        syntaxErrors += (URITemplateError.MalformedPctEncodedInLiteral, index)
+                        errors += (URITemplateError.MalformedPctEncodedInLiteral, index)
                         result = result + "{" + expression + "}"
 
                     } else {

 * error, the second element indicates the position (index) of the error in the URITemplate.
 */
    public class func process(template: String, values: AnyObject) -> (String, Array<(URITemplateError, Int)>) {
        // TODO: Use class variable
        struct ClassVariable {
            static let BehaviorTable = [
                "NUL": Behavior(first: "",  sep: ",", named: false, ifemp: "",  allow: .U),

        // Handle ending
        var endingIndex = countElements(template)
        if state == .ScanningLiteral {
            if !pctEncoded.isEmpty {
                errors += (URITemplateError.MalformedPctEncodedInLiteral, endingIndex)
                result += encodeLiteralString(pctEncoded)
            }

        } else if (state == .ScanningExpression) {
            errors += (URITemplateError.ExpressionEndedWithoutClosing, endingIndex)
            result = result + "{" + expression

        } else {
            assert(false);
        }
        if expressionCount == 0 {
            errors += (URITemplateError.NonExpressionFound, endingIndex)
        }

        return (result, errors)
    } // process

} // URITemplate

