File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
book-example/src/for_developers Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -334,7 +334,9 @@ the usual `RUST_LOG` to control logging verbosity.
334
334
If you enable a backend that isn't installed, the default behavior is to throw an error:
335
335
336
336
``` text
337
- The command wasn't found, is the "wordcount" backend installed?
337
+ The command `mdbook-wordcount` wasn't found, is the "wordcount" backend installed?
338
+ If you want to ignore this error when the "wordcount" backend is not installed,
339
+ set `optional = true` in the `[output.wordcount]` section of the book.toml configuration file.
338
340
```
339
341
340
342
This behavior can be changed by marking the backend as optional.
Original file line number Diff line number Diff line change @@ -173,7 +173,9 @@ impl CmdRenderer {
173
173
return Ok ( ( ) ) ;
174
174
} else {
175
175
error ! (
176
- "The command `{}` wasn't found, is the `{}` backend installed?" ,
176
+ "The command `{0}` wasn't found, is the \" {1}\" backend installed? \
177
+ If you want to ignore this error when the \" {1}\" backend is not installed, \
178
+ set `optional = true` in the `[output.{1}]` section of the book.toml configuration file.",
177
179
self . cmd, self . name
178
180
) ;
179
181
}
You can’t perform that action at this time.
0 commit comments