# sm.log.error

Logs an error message

**Kind:** Function

**Environments:** Game, Terrain

## Game

``` { .lua .api-signature }
sm.log.error( ... )
```

[Open the full Game reference](../Game-Script-Environment/Static-Functions/sm.log.md#error)

**Parameters:**

| Name | Type | Description |
| --- | --- | --- |
| `...` | any | The arguments to be displayed as an error message. |

## Terrain

``` { .lua .api-signature }
sm.log.error( ... )
```

[Open the full Terrain reference](../Terrain-Script-Environment/Static-Functions/sm.log.md#error)

**Parameters:**

| Name | Type | Description |
| --- | --- | --- |
| `...` | any | The arguments to be displayed as an error message. |
