From 2a283d98a37759bf817e5869132a3585436c26e7 Mon Sep 17 00:00:00 2001 From: Michael Comella Date: Fri, 22 Nov 2024 13:06:15 -0800 Subject: [PATCH] fix: add suggestion to 'cannot use... autogenerated' msg (#3309) --- src/cmd/sign.js | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/src/cmd/sign.js b/src/cmd/sign.js index 4a848131e2..bbbea5788f 100644 --- a/src/cmd/sign.js +++ b/src/cmd/sign.js @@ -66,8 +66,18 @@ export default function sign( if (idFromSourceDir && !id) { throw new UsageError( 'Cannot use previously auto-generated extension ID ' + - `${idFromSourceDir} - This extension ID must be specified in the manifest.json file.`, - ); + `${idFromSourceDir} - This extension ID must be specified in the manifest.json file. For example: + + // manifest.json + { + "browser_specific_settings": { + "gecko": { + "id": "${idFromSourceDir}" + } + }, + + ... + }`); } if (!id) {