---
title: "expr.errors: Expression errors (the error bar) — Motion kit command — Kition"
description: "Lists the expression errors in `comp` at `time` (seconds, default now): each failing property with layer, path and message, plus text lines like the error bar shows. Use after setting expressions with prop.setExpression."
canonical: "https://developer.kition.ai/docs/kits/motion/commands/expr.errors"
---

> Canonical HTML: [https://developer.kition.ai/docs/kits/motion/commands/expr.errors](https://developer.kition.ai/docs/kits/motion/commands/expr.errors)

# expr.errors

**Expression errors (the error bar).** Lists the expression errors in `comp` at `time` (seconds, default now): each failing property with layer, path and message, plus text lines like the error bar shows. Use after setting expressions with prop.setExpression.

- Kit: Motion 0.1.0 (.kmotion); reference: [Motion kit commands](https://developer.kition.ai/docs/kits/motion.md)
- Changes the document: no

## Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `comp` | `integer \| string` | no |  |
| `time` | `number` | no | s |

## Call through motion_run

```text
motion_run {
  "path": "<file>.kmotion",
  "steps": [{ "command": "expr.errors" }]
}
```

The required parameters, with placeholders for their types: not a tested example. Optional: `comp`, `time`. motion_run answers the step’s result in `completed[i].result`.

## Result

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `comp` | `integer` | no |  |
| `count` | `integer` | no |  |
| `errors` | `any[]` | no |  |
| `text` | `any[]` | no |  |
| `time` | `number` | no |  |

```json
{
  "additionalProperties": true,
  "properties": {
    "comp": {
      "type": "integer"
    },
    "count": {
      "type": "integer"
    },
    "errors": {
      "items": {},
      "type": "array"
    },
    "text": {
      "items": {},
      "type": "array"
    },
    "time": {
      "type": "number"
    }
  },
  "type": "object"
}
```

## Parameter schema

```json
{
  "additionalProperties": false,
  "properties": {
    "comp": {
      "oneOf": [
        {
          "description": "comp's item id as motion_inspect lists it",
          "type": "integer"
        },
        {
          "description": "the item id as receipts print it (\"1\"), or the comp's name",
          "type": "string"
        }
      ],
      "x-khp-name": "name",
      "x-khp-types": [
        "Item"
      ]
    },
    "time": {
      "description": "s",
      "type": "number"
    }
  },
  "type": "object"
}
```

Generated from the command list of @kition/motion-darwin-arm64@0.1.0 and the kit itself (motion_commands through @kition/cli@0.1.1, built from KitionAI/kition-motion@4719aa7).
