server: harmless error message when importing css files from the main theme file

This commit is contained in:
jean-emmanuel 2022-05-22 12:24:09 +02:00
parent 0bdebc1357
commit 020bda16ba
2 changed files with 4 additions and 2 deletions

View file

@ -25,6 +25,7 @@ var urlparser = require('url'),
zeroconf = require('./zeroconf'),
{resolveHomeDir} = require('./utils'),
prod = !process.argv[0].includes('node_modules'),
debug = setting.read('debug'),
osc = {},
clients = {},
httpCheckTimeout
@ -51,7 +52,7 @@ function resolvePath(url, clientId) {
// safari seems to be picky with cookies
if (clientId === undefined) console.error(`(ERROR, HTTP) Could not resolve requested url ${url} (client id not found in http cookies)`)
// this should never happen, but just in case...
else console.error(`(ERROR, HTTP) Could not resolve requested url ${url} (unregistered client id ${clientId})`)
else if (debug) console.log(`(DEBUG, HTTP) Requested url ${url} not resolved against session path (unregistered client id ${clientId})`)
} else {
sessionPath = path.dirname(ipc.clients[clientId].sessionPath)
}