[fix] create a proper error from a regular object with message and stack properties coming from the child process