Skip to content

Commit

Permalink
fix: add suggestion to 'cannot use... autogenerated' msg (mozilla#3309)
Browse files Browse the repository at this point in the history
  • Loading branch information
mcomella committed Nov 22, 2024
1 parent cde10a8 commit 2a283d9
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions src/cmd/sign.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 2a283d9

Please sign in to comment.