diff --git a/__generator__/predefined.yml b/__generator__/predefined.yml index 9010f995..9a5c6bb2 100644 --- a/__generator__/predefined.yml +++ b/__generator__/predefined.yml @@ -1864,7 +1864,7 @@ math.TAU: fastly.error: reference: "https://developer.fastly.com/reference/vcl/variables/miscellaneous/fastly-error/" on: [RECV, HASH, HIT, MISS, PASS, FETCH, ERROR, DELIVER, LOG] - get: FLOAT + get: STRING unset: true fastly.ff.visits_this_pop: diff --git a/context/predefined.go b/context/predefined.go index 6c3af488..8ef2670a 100644 --- a/context/predefined.go +++ b/context/predefined.go @@ -1787,7 +1787,7 @@ func predefinedVariables() Variables { "error": &Object{ Items: map[string]*Object{}, Value: &Accessor{ - Get: types.FloatType, + Get: types.StringType, Set: types.NeverType, Unset: true, Scopes: RECV | HASH | HIT | MISS | PASS | FETCH | ERROR | DELIVER | LOG,