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