Skip to content

Commit e4ec3ef

Browse files
committed
ci(e2e): list available keys when resolve-instance-keys can't find the requested entry
1 parent 989630d commit e4ec3ef

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

scripts/resolve-instance-keys.mjs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,10 @@ if (!parsed || typeof parsed !== 'object' || Array.isArray(parsed)) {
3939
}
4040

4141
const entry = parsed[instanceName];
42-
if (!entry) fail(`No entry '${instanceName}' found in ${secretVar}`);
42+
if (!entry) {
43+
const available = Object.keys(parsed).sort().join(', ') || '(none)';
44+
fail(`No entry '${instanceName}' found in ${secretVar}. Available keys: ${available}`);
45+
}
4346

4447
const { pk, sk } = entry;
4548
if (!pk) fail(`Entry '${instanceName}' in ${secretVar} is missing 'pk'`);

0 commit comments

Comments
 (0)