Mark invalid external repo specifiers as configuration error
This is a workaround — the proper fix is to better separate out user input vs the Action in `database init` so we can better attribute configuration errors.
This commit is contained in:
parent
87fc816d25
commit
fe593c34e6
3 changed files with 13 additions and 1 deletions
6
lib/cli-errors.js
generated
6
lib/cli-errors.js
generated
|
|
@ -115,6 +115,7 @@ var CliConfigErrorCategory;
|
|||
CliConfigErrorCategory["IncompatibleWithActionVersion"] = "IncompatibleWithActionVersion";
|
||||
CliConfigErrorCategory["InitCalledTwice"] = "InitCalledTwice";
|
||||
CliConfigErrorCategory["InvalidConfigFile"] = "InvalidConfigFile";
|
||||
CliConfigErrorCategory["InvalidExternalRepoSpecifier"] = "InvalidExternalRepoSpecifier";
|
||||
CliConfigErrorCategory["InvalidSourceRoot"] = "InvalidSourceRoot";
|
||||
CliConfigErrorCategory["MavenBuildFailed"] = "MavenBuildFailed";
|
||||
CliConfigErrorCategory["NoBuildCommandAutodetected"] = "NoBuildCommandAutodetected";
|
||||
|
|
@ -166,6 +167,11 @@ exports.cliErrorsConfig = {
|
|||
new RegExp("The supplied config file is empty"),
|
||||
],
|
||||
},
|
||||
[CliConfigErrorCategory.InvalidExternalRepoSpecifier]: {
|
||||
cliErrorMessageCandidates: [
|
||||
new RegExp("Specifier for external repository is invalid"),
|
||||
],
|
||||
},
|
||||
// Expected source location for database creation does not exist
|
||||
[CliConfigErrorCategory.InvalidSourceRoot]: {
|
||||
cliErrorMessageCandidates: [new RegExp("Invalid source root")],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue