Skip to content

Commit

Permalink
Merge pull request #8 from prestwich/patch-1
Browse files Browse the repository at this point in the history
doc: hint in error message
  • Loading branch information
rauljordan authored Sep 19, 2023
2 parents 022a2e5 + 5839d60 commit fc6e15a
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion src/project.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,21 @@ pub struct BuildConfig {

#[derive(thiserror::Error, Debug, PartialEq, Eq, Clone)]
pub enum BuildError {
#[error("could not find WASM in release dir ({path})")]
// The text of this comment, and the error message contents including and following the word "Hint"
// are subject to the following license, and are reproduced here in compliance with that license.
//
// Copyright 2023 James Prestwich
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
#[error("could not find WASM in release dir ({path}). Hint: Do you have a main.rs?")]
NoWasmFound { path: PathBuf },
#[error(
r#"compressed program size ({got}) exceeds max ({want}) despite --nightly flag. We recommend splitting up your program.
Expand Down

0 comments on commit fc6e15a

Please sign in to comment.