Merge pull request #425 from Brikaa/checksum-app-use

checksum fail message undefined, app.use() duplicate
This commit is contained in:
Thomas Hobson 2022-02-26 10:20:55 +13:00 committed by GitHub
commit f113a18cef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -77,7 +77,6 @@ expressWs(app);
const api_v2 = require('./api/v2');
app.use('/api/v2', api_v2);
app.use('/api/v2', api_v2);
app.use((req, res, next) => {
return res.status(404).send({ message: 'Not Found' });

View File

@ -80,7 +80,9 @@ class Package {
const cs = hash.digest('hex');
if (cs !== this.checksum) {
throw new Error(`Checksum miss-match want: ${val} got: ${cs}`);
throw new Error(
`Checksum miss-match want: ${this.checksum} got: ${cs}`
);
}
logger.debug(