Error uploading to netlify

When I push via git CLI, I get these errors in Netlify:
"build.command" failed

` Error message
9:39:28 PM: Command failed with exit code 255: hugo

9:39:28 PM: Error location

9:39:28 PM: In Build command from Netlify app:

9:39:28 PM: hugo
9:39:28 PM: ​
9:39:28 PM: Resolved config

9:39:28 PM: build:

9:39:28 PM: command: hugo

9:39:28 PM: commandOrigin: ui

9:39:28 PM: publish: /opt/build/repo/public`

any ideas?

  • What’s the content of your config.toml?
  • What’s the content of your netlify.toml?
  • What’s the full output of the command you try to run? (From start to end, not just the error message. I feel like there is something missing.)

You can format longer code blocks by using three back-ticks (```) on the line before the code and the same after the code.