File tree Expand file tree Collapse file tree 3 files changed +7
-4
lines changed
Expand file tree Collapse file tree 3 files changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,10 @@ impl<'a> ToSemver for &'a str {
1515 fn to_semver ( self ) -> CargoResult < Version > {
1616 match Version :: parse ( self . trim ( ) ) {
1717 Ok ( v) => Ok ( v) ,
18- Err ( ..) => Err ( anyhow:: format_err!( "cannot parse '{}' as a semver" , self ) ) ,
18+ Err ( ..) => Err ( anyhow:: format_err!(
19+ "cannot parse '{}' as a SemVer version" ,
20+ self
21+ ) ) ,
1922 }
2023 }
2124}
Original file line number Diff line number Diff line change @@ -230,7 +230,7 @@ fn ambiguous_version_no_longer_allowed() {
230230 cargo_process ( "install foo --version=1.0" )
231231 . with_stderr (
232232 "\
233- [ERROR] invalid value '1.0' for '--version <VERSION>': cannot parse '1.0' as a semver
233+ [ERROR] invalid value '1.0' for '--version <VERSION>': cannot parse '1.0' as a SemVer version
234234
235235 tip: if you want to specify SemVer range, add an explicit qualifier, like '^1.0'
236236
Original file line number Diff line number Diff line change @@ -156,7 +156,7 @@ error: invalid package ID specification: `two-ver@0`
156156<tab>Did you mean `two-ver`?
157157
158158Caused by:
159- cannot parse '0' as a semver
159+ cannot parse '0' as a SemVer version
160160" ,
161161 )
162162 . run ( ) ;
@@ -169,7 +169,7 @@ Caused by:
169169 error: invalid package ID specification: `two-ver@0.2`
170170
171171Caused by:
172- cannot parse '0.2' as a semver
172+ cannot parse '0.2' as a SemVer version
173173" ,
174174 )
175175 . run ( ) ;
You can’t perform that action at this time.
0 commit comments