macchiato-framework / macchiato-core

Ring style HTTP server abstraction for Node.js
MIT License
377 stars 35 forks source link

fixed app crash when multiparty returns error #25

Closed xafizoff closed 6 years ago

xafizoff commented 6 years ago

When multiparty returns error instead of fields and files (upload dir does not exist for example), app crashes with error

TypeError: Cannot convert undefined or null to object
    at Function.keys (<anonymous>)

So, just check for errors first, before parse-file-params and parse-params

yogthos commented 6 years ago

thanks, pushed out a new version to Clojars