Skip to content

Commit

Permalink
fix: Validate that a version is specified for imports
Browse files Browse the repository at this point in the history
  • Loading branch information
saulecabrera committed Apr 27, 2022
1 parent 2ce86ac commit 35481c2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/commands/add.rs
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,10 @@ impl AddCommand {
);
}
}
} else {
if self.version.is_none() {
bail!("version not specified for import `{}`", self.name);
}
}

// Validate exports
Expand Down

0 comments on commit 35481c2

Please sign in to comment.