# An output pattern isn't valid

What "an output in axle.toml isn't a valid pattern" means and how to fix it.

```text
error: the output "dist/[a" at line 2, column 12 of axle.toml isn't a valid pattern: unclosed character class; missing ']'
hint: Write the pattern as a glob, such as dist/** or !dist/**/*.map.
```

## Why it happens

A pattern under a task's `outputs` in `axle.toml` can't be read as a glob, for example because a `[` or `{` is never closed. A broken pattern under `inputs` has [its own page](https://axlers.dev/docs/messages/invalid-input-pattern.md).

## How to fix it

Fix the pattern at that line and column. Patterns are relative to the package's folder, or to the repository root after `{root}/`, and a `!` in front leaves files out. The [glob patterns](https://axlers.dev/docs/reference/globs.md) page shows what each symbol means.
