Skip to content

Commit 2a283d9

Browse files
committed
fix: add suggestion to 'cannot use... autogenerated' msg (#3309)
1 parent cde10a8 commit 2a283d9

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

src/cmd/sign.js

+12-2
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,18 @@ export default function sign(
6666
if (idFromSourceDir && !id) {
6767
throw new UsageError(
6868
'Cannot use previously auto-generated extension ID ' +
69-
`${idFromSourceDir} - This extension ID must be specified in the manifest.json file.`,
70-
);
69+
`${idFromSourceDir} - This extension ID must be specified in the manifest.json file. For example:
70+
71+
// manifest.json
72+
{
73+
"browser_specific_settings": {
74+
"gecko": {
75+
"id": "${idFromSourceDir}"
76+
}
77+
},
78+
79+
...
80+
}`);
7181
}
7282

7383
if (!id) {

0 commit comments

Comments
 (0)