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 {
15
15
fn to_semver ( self ) -> CargoResult < Version > {
16
16
match Version :: parse ( self . trim ( ) ) {
17
17
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
+ ) ) ,
19
22
}
20
23
}
21
24
}
Original file line number Diff line number Diff line change @@ -230,7 +230,7 @@ fn ambiguous_version_no_longer_allowed() {
230
230
cargo_process ( "install foo --version=1.0" )
231
231
. with_stderr (
232
232
"\
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
234
234
235
235
tip: if you want to specify SemVer range, add an explicit qualifier, like '^1.0'
236
236
Original file line number Diff line number Diff line change @@ -156,7 +156,7 @@ error: invalid package ID specification: `two-ver@0`
156
156
<tab>Did you mean `two-ver`?
157
157
158
158
Caused by:
159
- cannot parse '0' as a semver
159
+ cannot parse '0' as a SemVer version
160
160
" ,
161
161
)
162
162
. run ( ) ;
@@ -169,7 +169,7 @@ Caused by:
169
169
error: invalid package ID specification: `two-ver@0.2`
170
170
171
171
Caused by:
172
- cannot parse '0.2' as a semver
172
+ cannot parse '0.2' as a SemVer version
173
173
" ,
174
174
)
175
175
. run ( ) ;
You can’t perform that action at this time.
0 commit comments