respond with proper error page when the /s/:id sku fails
This commit is contained in:
parent
5524f14e1a
commit
720a969484
@ -29,7 +29,9 @@ function get(req: Request, res: Response) {
|
||||
res.send(html);
|
||||
});
|
||||
} else {
|
||||
res.send('Item not found');
|
||||
Eta.renderFile(__path + '/src/frontend/errors/404.eta.html', item).then((html) => {
|
||||
res.status(404).send(html);
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user