Would prefer for this code to not console.error/log much, and instead throw custom errors; this would make it the responsibility of the code calling Kludgy class to handle things (like test/example.js).
Here's a spot that could use custom error message (along with the stack trace from the actual error being thrown):
Would prefer for this code to not console.error/log much, and instead throw custom errors; this would make it the responsibility of the code calling Kludgy class to handle things (like test/example.js).
Here's a spot that could use custom error message (along with the stack trace from the actual error being thrown):
https://github.com/mhulse/kludgy/blob/806185358ceb734864fb1e221d6b8c597bde8b49/index.js#L102-L105