mirror of
https://github.com/the-draupnir-project/Draupnir.git
synced 2026-03-29 10:29:57 +00:00
Throw if --draupnir-config option not provided. (#1054)
Some checks failed
Docker Hub - Develop / docker-latest (push) Failing after 33s
GHCR - Development Branches / ghcr-publish (push) Failing after 33s
Tests / Application Service Integration tests (push) Failing after 12s
Tests / Build & Lint (push) Failing after 6m5s
Tests / Integration tests (push) Failing after 24s
Tests / Unit tests (push) Successful in 7m15s
Some checks failed
Docker Hub - Develop / docker-latest (push) Failing after 33s
GHCR - Development Branches / ghcr-publish (push) Failing after 33s
Tests / Application Service Integration tests (push) Failing after 12s
Tests / Build & Lint (push) Failing after 6m5s
Tests / Integration tests (push) Failing after 24s
Tests / Unit tests (push) Successful in 7m15s
We still support --mjolnir-config. https://github.com/the-draupnir-project/Draupnir/issues/218 This functionality was deprecated in https://github.com/the-draupnir-project/Draupnir/releases/tag/v2.0.0-beta.8. https://github.com/the-draupnir-project/planning/issues/105
This commit is contained in:
@@ -301,13 +301,9 @@ function getConfigPath(): {
|
||||
if (mjolnirPath) {
|
||||
return { isDraupnirPath: false, path: mjolnirPath };
|
||||
}
|
||||
const path = Config.util.getConfigSources().at(-1)?.name;
|
||||
if (path === undefined) {
|
||||
throw new TypeError(
|
||||
"No configuration path has been found for Draupnir. Use the --draupnir-config option to provide a path to the config."
|
||||
);
|
||||
}
|
||||
return { isDraupnirPath: false, path };
|
||||
throw new TypeError(
|
||||
"No configuration path has been found for Draupnir. Use the --draupnir-config option to provide a path to the config."
|
||||
);
|
||||
}
|
||||
|
||||
function getConfigMeta(): NonNullable<IConfig["configMeta"]> {
|
||||
|
||||
Reference in New Issue
Block a user