Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve error message when attempting to output the wasm module to a non_existing_folder #178

Open
DOBEN opened this issue Jun 28, 2024 · 0 comments
Labels
good first issue Good for newcomers [Type] Change Request Some visible functionality should be change.

Comments

@DOBEN
Copy link
Member

DOBEN commented Jun 28, 2024

Task description
The error message when attempting to output the wasm module to a non_existing_folder can be improved. It should specify the expected input format of the --out flag similar to the second command below.

cargo concordium build -o ./not_existing_folder/

    Finished release [optimized] target(s) in 0.00s
Error: Could not build smart contract.

Caused by:
    0: Unable to write final module.
    1: Is a directory (os error 21)

Executing the same command with an existing folder (but without a file name) gives a good error, specifying the expected format.

cargo concordium build -o ./existing_folder/
Error: Could not build smart contract.

Caused by:
    The `--out` flag requires a path and a filename (expected input: `./my/path/my_smart_contract.wasm.v1`)
@DOBEN DOBEN added [Type] Task An additional feature or improvement. good first issue Good for newcomers labels Jun 28, 2024
@limemloh limemloh added the [Type] Change Request Some visible functionality should be change. label Sep 5, 2024 — with Linear
@limemloh limemloh removed the [Type] Task An additional feature or improvement. label Sep 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers [Type] Change Request Some visible functionality should be change.
Projects
None yet
Development

No branches or pull requests

2 participants