mirror of
https://github.com/facebook/docusaurus.git
synced 2025-05-09 23:27:28 +02:00
refactor: normalize error logging (#7370)
This commit is contained in:
parent
87c7639a52
commit
7c9892888d
10 changed files with 27 additions and 30 deletions
|
@ -64,9 +64,9 @@ export async function cliDocsVersionCommand(
|
|||
|
||||
try {
|
||||
validateVersionName(version);
|
||||
} catch (e) {
|
||||
} catch (err) {
|
||||
logger.info`${pluginIdLogPrefix}: Invalid version name provided. Try something like: 1.0.0`;
|
||||
throw e;
|
||||
throw err;
|
||||
}
|
||||
|
||||
// Load existing versions.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue