@@ -106,7 +106,7 @@ fn kind_formats_validation_error() {
106
106
let err = res. unwrap_err ( ) ;
107
107
let expected_kind = ErrorKind :: UnknownArgument ;
108
108
static MESSAGE : & str = "\
109
- error: unexpected argument
109
+ error: unexpected argument found
110
110
" ;
111
111
assert_error ( err, expected_kind, MESSAGE , true ) ;
112
112
}
@@ -120,7 +120,7 @@ fn rich_formats_validation_error() {
120
120
let err = res. unwrap_err ( ) ;
121
121
let expected_kind = ErrorKind :: UnknownArgument ;
122
122
static MESSAGE : & str = "\
123
- error: unexpected argument 'unused'
123
+ error: unexpected argument 'unused' found
124
124
125
125
Usage: test
126
126
@@ -139,7 +139,7 @@ fn suggest_trailing() {
139
139
let err = res. unwrap_err ( ) ;
140
140
let expected_kind = ErrorKind :: UnknownArgument ;
141
141
static MESSAGE : & str = "\
142
- error: unexpected argument '--foo'
142
+ error: unexpected argument '--foo' found
143
143
144
144
note: to pass '--foo' as a value, use '-- --foo'
145
145
@@ -160,7 +160,7 @@ fn trailing_already_in_use() {
160
160
let err = res. unwrap_err ( ) ;
161
161
let expected_kind = ErrorKind :: UnknownArgument ;
162
162
static MESSAGE : & str = "\
163
- error: unexpected argument '--foo'
163
+ error: unexpected argument '--foo' found
164
164
165
165
Usage: rg [PATTERN]
166
166
@@ -179,7 +179,7 @@ fn cant_use_trailing() {
179
179
let err = res. unwrap_err ( ) ;
180
180
let expected_kind = ErrorKind :: UnknownArgument ;
181
181
static MESSAGE : & str = "\
182
- error: unexpected argument '--foo'
182
+ error: unexpected argument '--foo' found
183
183
184
184
Usage: test
185
185
0 commit comments