@RichardGill You would need to provide the section of the build log containing the actual error, not the section you have screenshot.
(I actually have an open Feature Request regarding this: https://answers.netlify.com/t/error-message-command-failed-with-exit-code-is-confusing-misleading/118887)
Your site likely uses environment variables to connect to dato, and if that’s the case I won’t be able to test it myself. Have you made sure they’re set correctly on Netlify?