Print stack trace when possible on `prepare` error