Skip to content

Latest commit

 

History

History
32 lines (18 loc) · 748 Bytes

File metadata and controls

32 lines (18 loc) · 748 Bytes

@languages-learner/error-utils

Error typing and handling helpers.

Purpose

Normalizes unknown errors into readable messages so UI and other packages can display them consistently.

Public API / exports

From src/index.ts:

  • getErrorMessage(error) — extract a human-readable message from an unknown error.

Depends on

  • No workspace packages.

Used in

  • @languages-learner/uikit.

Notes

  • Defines its own test:unit (vitest). Run a single test with pnpm --filter @languages-learner/error-utils test:unit -- <name-pattern>.

Links