Skip to content
This repository has been archived by the owner on Aug 3, 2023. It is now read-only.

Commit

Permalink
Add error when template is passed to generate site
Browse files Browse the repository at this point in the history
  • Loading branch information
EverlastingBugstopper committed Oct 21, 2019
1 parent c5e29eb commit 0a2ef34
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -392,6 +392,9 @@ fn run() -> Result<(), failure::Error> {
let site = matches.is_present("site");

let (target_type, template) = if site {
if matches.value_of("template").is_some() {
failure::bail!("You cannot specify a template when generating a Workers Site. If you want to generate site boilerplate, run wrangler generate --site")
}
// Workers Sites projects are always Webpack for now
let target_type = Some(TargetType::Webpack);
let template = "https://github.com/cloudflare/worker-sites-template";
Expand Down

0 comments on commit 0a2ef34

Please sign in to comment.