# formatDiagnostic

function in `@dioramajs/glsl/convert`

```ts
import { formatDiagnostic } from '@dioramajs/glsl/convert'
```

`wave.frag:12:5 error GLSL_INOUT message`, then the hint, the page of the code and the frame.

```ts
function formatDiagnostic(
  diagnostic: GlslDiagnostic,
  withFrame?: boolean,
): string
```

| Parameter | Type | Description |
| --- | --- | --- |
| `diagnostic` | `GlslDiagnostic` |  |
| `withFrame?` | `boolean` |  |

Defined in [packages/glsl/src/convert/errors.ts](https://github.com/MasterKurosava/diorama/blob/main/packages/glsl/src/convert/errors.ts#L59).
