mirror of
https://github.com/morluto/rea.git
synced 2026-11-20 05:32:44 +00:00
refactor(errors): finish local-limit-error-class and range-error-interpretation guards (#11784)
This commit is contained in:
1 parent
62f5946ba1
commit
08b63cc8a1
21 files changed
+208
-103
No files matched your search
@@ -13,6 +13,7 @@ import {
|
||||
AnalysisInputError,
|
||||
AnalysisResourceConstraintError,
|
||||
} from "../domain/analysisErrorCore.js";
|
||||
import { hostRangeErrorKind } from "../domain/parseFailure.js";
|
||||
import { err, ok, type Result } from "../domain/result.js";
|
||||
import { sliceTextByTokenWindow } from "./tokenWindow.js";
|
||||
import {
|
||||
@@ -119,7 +120,8 @@ export const createCliResultOutput = (
|
||||
if (
|
||||
completed === undefined ||
|
||||
handled ||
|
||||
!(cause instanceof RangeError) ||
|
||||
hostRangeErrorKind(cause) !== "host-capacity" ||
|
||||
!(cause instanceof Error) ||
|
||||
cause.message !== "Invalid string length"
|
||||
)
|
||||
return false;
|
||||
|
||||
Reference in new issue
Block a user