---
url: >-
  https://adk.nht.io/api/@nhtio/adk/batteries/skills/variables/E_SKILL_SCRIPT_FAILED.md
description: >-
  Raised when a skill script completes with a nonzero exit code and the
  deployment leaves `SkillScriptConfig.failOnNonzeroExit` at its default
  (`true`). The message carries the script name, the exit code, and the
  retrievable id of the spooled output so the failure is still inspectable. A
  deployment whose scripts use exit codes as ordinary signalling sets
  `failOnNonzeroExit: false` and receives the acknowledgement string instead.
---

# Variable: E\_SKILL\_SCRIPT\_FAILED

```ts
const E_SKILL_SCRIPT_FAILED: CreatedException<[string, string]>;
```

Defined in: [src/batteries/skills/exceptions.ts:131](https://github.com/NHTIO/ADK/blob/v1.20260911.0/src/src/batteries/skills/exceptions.ts#L131)

Raised when a skill script completes with a nonzero exit code and the deployment leaves
`SkillScriptConfig.failOnNonzeroExit` at its default (`true`). The message carries the script
name, the exit code, and the retrievable id of the spooled output so the failure is still
inspectable. A deployment whose scripts use exit codes as ordinary signalling sets
`failOnNonzeroExit: false` and receives the acknowledgement string instead.
