Problem code 'invalid-input' ​

Contract 2.0.0 · package sha256 a857eca95b35921109faf997094bb4192f12527d9d0fcd4be7e97f06425bad6e · generated from configurator-runtime.d.ts, tables/problems.json and services/onsite-scripter/scripts/contract-docs-what-to-do.json by services/onsite-scripter/scripts/build-contract-docs.mjs; edit the source, not this file.

A member of ProblemCode · stable · since 2.0.0

A call rejected or threw HoloInputError; recorded so an unawaited one is never silent.

What to do ​

A call rejected or threw HoloInputError (recorded even when you catch it): await the call, read the error's code, path, expected and fix, and open its own page (error.docs, under input-errors/).

ts
try { await session.select(group, material); } catch (e) {
  if (e instanceof HoloInputError) console.warn(e.code, e.path, e.expected, e.fix, e.docs);
}

Where the declaration names it ​

The set is open: handle a code you don't know ('other').