Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Sergej Kostjucenko
cargo-contract
Commits
da183542
Commit
da183542
authored
Nov 13, 2020
by
Andrew Jones
Browse files
Fix ink_metadata error messages
parent
fccec236
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/workspace/manifest.rs
View file @
da183542
...
...
@@ -383,9 +383,9 @@ impl Manifest {
.get
(
"dependencies"
)
.ok_or
(
anyhow
::
anyhow!
(
"[dependencies] section not found"
))
?
.get
(
"ink_metadata"
)
.ok_or
(
anyhow
::
anyhow!
(
"
{}
dependency not found"
,
contract_package_name
))
?
.ok_or
(
anyhow
::
anyhow!
(
"
ink_metadata
dependency not found"
))
?
.as_table
()
.ok_or
(
anyhow
::
anyhow!
(
"
{}
dependency should be a table"
,
contract_package_name
))
?
;
.ok_or
(
anyhow
::
anyhow!
(
"
ink_metadata
dependency should be a table"
))
?
;
metadata
::
generate_package
(
dir
,
contract_package_name
,
ink_metadata
.clone
())
?
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment