From 42ffa42f69ad3503e748cb48dbb070abb180ce6d Mon Sep 17 00:00:00 2001 From: Dan Connolly Date: Wed, 27 Jan 2021 11:26:38 -0600 Subject: [PATCH] chore: refine xs-worker diagnostics --- .../src/kernel/vatManager/manager-subprocess-xsnap.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/packages/SwingSet/src/kernel/vatManager/manager-subprocess-xsnap.js b/packages/SwingSet/src/kernel/vatManager/manager-subprocess-xsnap.js index 677d72a16b1..f81f41b27fa 100644 --- a/packages/SwingSet/src/kernel/vatManager/manager-subprocess-xsnap.js +++ b/packages/SwingSet/src/kernel/vatManager/manager-subprocess-xsnap.js @@ -41,8 +41,11 @@ export function makeXsSubprocessFactory({ async function createFromBundle(vatID, bundle, managerOptions) { parentLog('createFromBundle', { vatID }); const { vatParameters, virtualObjectCacheSize } = managerOptions; - assert(!managerOptions.metered, 'not supported yet'); - assert(!managerOptions.enableSetup, 'not supported at all'); + assert(!managerOptions.metered, 'xs-worker: metered not supported yet'); + assert( + !managerOptions.enableSetup, + 'xs-worker: enableSetup not supported at all', + ); if (managerOptions.enableInternalMetering) { // TODO: warn+ignore, rather than throw, because the kernel enables it // for all vats, because the Spawner still needs it. When the kernel