timgit / pg-boss

Queueing jobs in Postgres from Node.js like a boss
MIT License
1.95k stars 153 forks source link

Fix: onError emit full error message and stack #278

Closed phips28 closed 2 years ago

phips28 commented 2 years ago

Fixes: https://github.com/timgit/pg-boss/issues/277

I don't know if it introduces any regressions? But I don't think so, as you basically tried to spread the error object, and therefore expected message & stack to be there.

timgit commented 2 years ago

thanks!