main
claude/smbcloud-github-app-k9641p
development
feature/apps
feature/build-release
feature/ci-docs
feature/ci-ruby-gems
feature/cicd
feature/completion
feature/dist-nuget
feature/fix-ci-sdk-pypi-rubygem
feature/fix-clippy-on-stable-channel
feature/fix-deployment-script
feature/github-email
feature/gresiq-v1
feature/project-new-structure
feature/rsync-deploy
feature/ruby-runner
feature/sdk-npm
feature/sdk-workflows
feature/smbcloud-cli-release-npm
feature/smbcloud-deploy
feature/wasm
main
release/v0.7.4
| 1 | use thiserror::Error; |
| 2 | |
| 3 | /// Errors surfaced by the deploy engine. |
| 4 | /// |
| 5 | /// These are transport- and UI-neutral: a front-end decides how to render them |
| 6 | /// (a red spinner line in the CLI, a failed CI step, a git sideband error). |
| 7 | #[derive(Debug, Error)] |
| 8 | pub enum DeployError { |
| 9 | /// No `.smb/config.toml` in the working directory. The front-end owns the |
| 10 | /// interactive setup flow, so the engine reports this rather than prompting. |
| 11 | #[error("no .smb/config.toml found; run setup first")] |
| 12 | NeedsSetup, |
| 13 | |
| 14 | /// Couldn't determine the runtime from the working directory. |
| 15 | #[error( |
| 16 | "could not detect a runner: no package.json, Gemfile, Package.swift, or Cargo.toml found" |
| 17 | )] |
| 18 | RunnerNotDetected, |
| 19 | |
| 20 | /// Anything not yet modelled as a specific variant. |
| 21 | #[error(transparent)] |
| 22 | Other(#[from] anyhow::Error), |
| 23 | } |