How can I find an error? I have a promise with `.c...
# prisma-whats-new
l
How can I find an error? I have a promise with
.catch(e => {return { errors: e }}
at the end, but this doesn't show any errors. I just got
{ data: { myFunction: null } }
. I can't make
console.log
statements, because I can't see it. Docker container with Graphcool server gave me
error from daemon in stream: Error grabbing logs: invalid character '\x00' looking for beginning of value
What is the way to catch and see errors? I can't code without debugging
n
try
.catch(e => {console.log(e) return { error: 'Error' }}
instead
l
But I can't see this
console.log
as I haven't access to server logs. Docker container has an
error from deamon
n
please provide a bug report here https://github.com/graphcool/framework