From d075d27885fa70d1450390e1e41955a48910ebbe Mon Sep 17 00:00:00 2001 From: Christopher Monsanto Date: Mon, 17 Aug 2026 00:13:46 -0400 Subject: [PATCH] Move BuildError to errors.ts Co-Authored-By: Claude Fable 5 --- tools/build/errors.ts | 3 +++ tools/build/graph.ts | 3 ++- 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 tools/build/errors.ts diff --git a/tools/build/errors.ts b/tools/build/errors.ts new file mode 100644 index 00000000..3051f8bd --- /dev/null +++ b/tools/build/errors.ts @@ -0,0 +1,3 @@ + +// User-facing build failure: printed without a stack trace. +export class BuildError extends Error {} diff --git a/tools/build/graph.ts b/tools/build/graph.ts index d7008170..ba25dad7 100644 --- a/tools/build/graph.ts +++ b/tools/build/graph.ts @@ -1,7 +1,8 @@ import type {RuleDecl} from './api.ts'; +import {BuildError} from './errors.ts'; -export class BuildError extends Error {} +export {BuildError}; export interface GraphResult { order : RuleDecl[]; // topological, stable w.r.t. declaration order