Skip to content

Commit

Permalink
Change error discriminant name
Browse files Browse the repository at this point in the history
  • Loading branch information
lachlansneff committed Jan 24, 2019
1 parent c06bd15 commit ab25125
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/runtime-core/src/error.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ impl PartialEq for RuntimeError {
#[derive(Debug, Clone)]
pub enum ResolveError {
Signature { expected: FuncSig, found: Vec<Type> },
NoSuchExport { name: String },
ExportNotFound { name: String },
ExportWrongType { name: String },
}

Expand Down
4 changes: 2 additions & 2 deletions lib/runtime-core/src/instance.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ impl Instance {
self.module
.exports
.get(name)
.ok_or_else(|| ResolveError::NoSuchExport {
.ok_or_else(|| ResolveError::ExportNotFound {
name: name.to_string(),
})?;

Expand Down Expand Up @@ -143,7 +143,7 @@ impl Instance {
self.module
.exports
.get(name)
.ok_or_else(|| ResolveError::NoSuchExport {
.ok_or_else(|| ResolveError::ExportNotFound {
name: name.to_string(),
})?;

Expand Down

0 comments on commit ab25125

Please sign in to comment.