rework error
This commit is contained in:
parent
0518935658
commit
5116dd2137
1 changed files with 0 additions and 6 deletions
6
app.js
6
app.js
|
@ -46,12 +46,6 @@ app.use("/", authRouter);
|
||||||
|
|
||||||
app.use("/uploads", express.static("uploads"));
|
app.use("/uploads", express.static("uploads"));
|
||||||
|
|
||||||
// error handler
|
|
||||||
app.use((err, req, res) => {
|
|
||||||
console.error(err.stack);
|
|
||||||
res.status(500).send("Something broke!");
|
|
||||||
});
|
|
||||||
|
|
||||||
function prune () {
|
function prune () {
|
||||||
console.log("Vacuuming database...");
|
console.log("Vacuuming database...");
|
||||||
db.run("VACUUM");
|
db.run("VACUUM");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue