Update readme and die on unhandled promises rejections

This commit is contained in:
lowlighter
2020-09-18 09:54:25 +02:00
parent dfeb468b82
commit a6ffa0ffd2
11 changed files with 17 additions and 7 deletions

View File

@@ -13,6 +13,7 @@
//Initialization
console.log(`GitHub metrics as SVG image`)
console.log(`========================================================`)
process.on("unhandledRejection", error => { throw error })
//Load svg template, style and query
const template = `<#include template.svg>`, style = `<#include style.css>`, query = `<#include query.graphql>`