We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 59e406d commit f47df14Copy full SHA for f47df14
2 files changed
scripts/dataset/publish/datagouv/index.js
@@ -45,12 +45,14 @@ function loadConfiguration() {
45
}
46
47
const datasetTitle = config.get('@opentermsarchive/engine.dataset.title');
48
+
49
if (!datasetTitle) {
50
throw new Error('"title" is required in config at @opentermsarchive/engine.dataset');
51
52
53
const frequency = config.has('@opentermsarchive/engine.dataset.datagouv.frequency') && config.get('@opentermsarchive/engine.dataset.datagouv.frequency');
- if (!frequency){
54
55
+ if (!frequency) {
56
throw new Error('"frequency" is required in config at @opentermsarchive/engine.dataset.datagouv');
57
58
scripts/dataset/publish/index.js
@@ -1,5 +1,3 @@
1
-import config from 'config';
2
-
3
import logger from '../logger/index.js';
4
5
import publishDataGouv from './datagouv/index.js';
0 commit comments