Skip to content

Commit

Permalink
fix: fix linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
cmoinier committed Jul 16, 2024
1 parent b1fa3bb commit cbe1506
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion conf/default.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
# The advanced search filters available to the user can be customized with this setting.
# The following fields can be used for filtering: 'organization', 'format', 'publicationYear', 'inspireKeyword', 'keyword', 'topic', 'isSpatial', 'license', 'resourceType', 'representationType', 'revisionYear', 'categoryKeyword', 'qualityScore', 'territories', 'publisherOrg', 'producerOrg'
# any other field will be ignored
# advanced_filters = ['format', 'topic', 'resourceType', 'representationType', 'publisherOrg', 'producerOrg']
# advanced_filters = ['format', 'topic', 'keyword', 'organization', 'publisherOrg', 'producerOrg']
8 changes: 5 additions & 3 deletions libs/mel/src/lib/util/app-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,12 @@ export function loadAppConfig() {
.then((conf) => {
let parsed
try {
parsed = TOML.parse(conf, { joiner: '\n', bigint: false }) as any
} catch (e: any) {
parsed = TOML.parse(conf, { joiner: '\n', bigint: false })
} catch (e: unknown) {
throw new Error(
`An error occurred when parsing the configuration file: ${e.message}`
`An error occurred when parsing the configuration file: ${
(e as Error).message
}`
)
}
const errors = []
Expand Down

0 comments on commit cbe1506

Please sign in to comment.