diff --git a/packages/zoe/src/objArrayConversion.js b/packages/zoe/src/objArrayConversion.js index fd5cd31dba8..d69b6a43e5f 100644 --- a/packages/zoe/src/objArrayConversion.js +++ b/packages/zoe/src/objArrayConversion.js @@ -22,7 +22,12 @@ export const objToArray = (obj, keywords) => { export const assertSubset = (whole, part) => { part.forEach(key => { assert.typeof(key, 'string'); - assert(whole.includes(key), details`key ${key} was not an expected key`); + assert( + whole.includes(key), + details`key ${key} was not one of the expected keys (${whole.join( + ', ', + )})`, + ); }); };