Unable to deploy flutter web app

having such erroor

1:13:09 AM: <asynchronous suspension>
1:13:09 AM: #18     AppContext.run.<anonymous closure> (package:flutter_tools/src/base/context.dart:150:19)
1:13:09 AM: <asynchronous suspension>
1:13:09 AM: #19     main (package:flutter_tools/executable.dart:91:3)
1:13:09 AM: <asynchronous suspension>
1:13:09 AM: Compiling lib/main.dart for the Web...                             12.0s
1:13:09 AM: Exception: Failed to compile application for the Web.
1:13:09 AM: ​
1:13:09 AM: "build.command" failed                                        
1:13:09 AM: ────────────────────────────────────────────────────────────────
1:13:09 AM: ​
1:13:09 AM:   Error message
1:13:09 AM:   Command failed with exit code 1: if cd flutter; then git pull && cd ..; else git clone https://github.com/flutter/flutter.git; fi && flutter/bin/flutter config --enable-web && flutter/bin/flutter build web --release (https://ntl.fyi/exit-code-1)
1:13:09 AM: ​
1:13:09 AM:   Error location
1:13:09 AM:   In Build command from Netlify app:
1:13:09 AM:   if cd flutter; then git pull && cd ..; else git clone https://github.com/flutter/flutter.git; fi && flutter/bin/flutter config --enable-web && flutter/bin/flutter build web --release
1:13:09 AM: ​
1:13:09 AM:   Resolved config
1:13:09 AM:   build:
1:13:09 AM:     command: if cd flutter; then git pull && cd ..; else git clone https://github.com/flutter/flutter.git; fi && flutter/bin/flutter config --enable-web && flutter/bin/flutter build web --release
1:13:09 AM:     commandOrigin: ui
1:13:09 AM:     environment:
1:13:09 AM:       - REVIEW_ID
1:13:09 AM:     publish: /opt/build/repo/build/web
1:13:09 AM:     publishOrigin: ui
1:13:09 AM: Caching artifacts
1:13:09 AM: Started saving build plugins
1:13:09 AM: Finished saving build plugins
1:13:09 AM: Started saving pip cache
1:13:09 AM: Finished saving pip cache
1:13:09 AM: Started saving emacs cask dependencies
1:13:09 AM: Finished saving emacs cask dependencies
1:13:09 AM: Started saving maven dependencies
1:13:09 AM: Finished saving maven dependencies
1:13:09 AM: Started saving boot dependencies
1:13:09 AM: Finished saving boot dependencies
1:13:09 AM: Started saving rust rustup cache
1:13:09 AM: Finished saving rust rustup cache
1:13:09 AM: Started saving go dependencies
1:13:09 AM: Finished saving go dependencies
1:13:09 AM: Build failed due to a user error: Build script returned non-zero exit code: 2
1:13:10 AM: Failing build: Failed to build site
1:13:10 AM: Finished processing build request in 1m16.231s
============

This doesn’t provide any useful info, unfortunately. Does this build locally?