Node.js
1
Вклад в тег
var file = fs.createReadStream("somefilethatnotexist.html");
file.on("error", (err) => {
console.log('I got error!');
});
server.on("error", (err) => {
console.log('I got error!');
});