File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed
Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change 11import { Type } from './type'
22import { inspect } from 'util'
3- export { inspect }
43
54const MAX_ERR_LINE_LENGTH = 40
65const INDENT = ' '
@@ -261,12 +260,10 @@ export function pathToString(lookupPath: PathElement[]): string {
261260export class StructuralError extends Error {
262261 readonly value : any // The invalid value
263262 readonly type : Type < any > // Expected type of value
264- readonly causes : Err < any > [ ] // causes
263+ readonly causes : Err < any > [ ] // Flattened causes of this error
265264
266265 constructor ( msg : string , opts : Pick < StructuralError , 'value' | 'type' | 'causes' > ) {
267-
268266 super ( msg )
269- // TODO: the above "which" doesn't necessarily make sense in all cases.
270267 this . value = opts . value
271268 this . type = opts . type
272269 this . causes = opts . causes
You can’t perform that action at this time.
0 commit comments