Skip to content

Commit baf9206

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

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

src/cmd/sign.js

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +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.`,
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+
}`,
7081
);
7182
}
7283

0 commit comments

Comments
 (0)