modern-dnsd icon indicating copy to clipboard operation
modern-dnsd copied to clipboard

Add guards for uncatched errors

Open WeeJeWel opened this issue 7 years ago • 1 comments

Without this code, the following exceptions happen:

TypeError: Cannot read property 'priority' of undefined
    at State.record (/var/app/current/node_modules/modern-dnsd/encode.js:169:37)
Error processing request TypeError: Cannot read property 'map' of undefined
    at State.record (/var/app/current/node_modules/modern-dnsd/encode.js:160:29)

It seems that the initial object is wrong, but I have too little knowledge of this project to understand how to fix that.

WeeJeWel avatar Dec 09 '18 00:12 WeeJeWel

I also have too little knowledge of this project to understand how to fix it.

PRs fixing the deeper issues are very welcome!

ansuz avatar Dec 10 '18 14:12 ansuz