mirror of https://github.com/pulumi/pulumi.git
a07dbaa0fd
In JavaScript you can throw *anything*, not just errors. Our error handler was falling back to `”” + err` to stringify the error, however if that object does not implement `toString()`, the error handler itself throws with a type error. We can handle this more gracefully using `util.inspect`, which does not crash, unless the error is very naughty and overrides the `util.inspect.custom` hook and throws in that. Fixes https://github.com/pulumi/pulumi/issues/18068 |
||
---|---|---|
.. | ||
automation | ||
cmd | ||
runtime | ||
sxs_ts_test | ||
config.spec.ts | ||
constants.ts | ||
init.spec.ts | ||
iterable.spec.ts | ||
options.spec.ts | ||
output.spec.ts | ||
provider.spec.ts | ||
resource.spec.ts | ||
stackReference.spec.ts | ||
unwrap.spec.ts | ||
util.ts |