Move BuildError to errors.ts

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Christopher Monsanto
2026-08-17 00:13:46 -04:00
parent 11282e1002
commit d075d27885
2 changed files with 5 additions and 1 deletions

3
tools/build/errors.ts Normal file
View File

@@ -0,0 +1,3 @@
// User-facing build failure: printed without a stack trace.
export class BuildError extends Error {}

View File

@@ -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