From d7af5235bf85e3ebfc2dd129e9abcfa3fb5f804e Mon Sep 17 00:00:00 2001 From: Martin d'Allens Date: Tue, 21 Nov 2023 22:23:53 +0100 Subject: [PATCH] fix: clean error message, remove outdated data wmts (#1067) Signed-off-by: Martin d'Allens --- public/templates/index.tmpl | 3 --- src/serve_style.js | 4 +--- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/public/templates/index.tmpl b/public/templates/index.tmpl index 8708881..2de6634 100644 --- a/public/templates/index.tmpl +++ b/public/templates/index.tmpl @@ -82,9 +82,6 @@
type: {{#is_vector}}vector{{/is_vector}}{{^is_vector}}raster{{/is_vector}} data {{#if source_type}} | ext: {{source_type}}{{/if}}

services: TileJSON - {{#if wmts_link}} - | WMTS - {{/if}} {{#if xyz_link}} | XYZ diff --git a/src/serve_style.js b/src/serve_style.js index de981c7..de4ccdb 100644 --- a/src/serve_style.js +++ b/src/serve_style.js @@ -98,9 +98,7 @@ export const serve_style = { const validationErrors = validate(styleFileData); if (validationErrors.length > 0) { - console.log( - `The file "${params.style}" is not valid a valid style file:`, - ); + console.log(`The file "${params.style}" is not a valid style file:`); for (const err of validationErrors) { console.log(`${err.line}: ${err.message}`); }