mirror of
https://github.com/brianc/node-postgres.git
synced 2026-01-25 16:03:13 +00:00
Updated Example (markdown)
parent
bdc20deae0
commit
36e130b088
@ -29,7 +29,7 @@ var pool = new Pool(config)
|
||||
var server = http.createServer(function(req, res) {
|
||||
|
||||
var onError = function(err) {
|
||||
console.log(e.message, e.stack)
|
||||
console.log(err.message, err.stack)
|
||||
res.writeHead(500, {'content-type': 'text/plain'});
|
||||
res.end('An error occurred');
|
||||
};
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user