mirror of
https://github.com/kevin-DL/sapper.git
synced 2026-01-21 06:45:00 +00:00
dont assume error was caught
This commit is contained in:
@@ -105,7 +105,7 @@ module.exports = function connect(opts) {
|
|||||||
} catch(err) {
|
} catch(err) {
|
||||||
// TODO nice error pages
|
// TODO nice error pages
|
||||||
res.status(500);
|
res.status(500);
|
||||||
res.end(err.stack);
|
res.end(err ? (err.stack || err.message || err) : 'Unknown error');
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
Reference in New Issue
Block a user