Graphcool / graphcool-framework

Apache License 2.0
1.77k stars 131 forks source link

Returning a string instead of an object results in internal server error #485

Open marktani opened 6 years ago

marktani commented 6 years ago

Current behavior

Returning a string from a Graphcool Function results in internal server error.

Reproduction

module.exports = event => {
  return "This will break"
}

Expected behavior?

Instead of an internal server error, a helpful error message is returned and logged.