# environment.override-invalid

> Talos next · Since next

`ctx.environment.override` was given something that is not a patch: not an object, a key other than `sky`, `skyColor`, `ambient`, `fog` and `exposure`, a value of the wrong JSON type (a `TypeError`), or a number that is not finite (a `RangeError`); nothing changed

| | |
|---|---|
| Severity | `error` |

## Meaning

`ctx.environment.override` was given something that is not a patch: not an object, a key other than `sky`, `skyColor`, `ambient`, `fog` and `exposure`, a value of the wrong JSON type (a `TypeError`), or a number that is not finite (a `RangeError`); nothing changed

## Fix

pass an object of those keys, written as the scene file writes them
