mirror of
https://github.com/elastic/kibana.git
synced 2025-04-23 01:13:23 -04:00
[7.x] Remove duplicate but in error message (#50699)
This commit is contained in:
parent
b0faa0a256
commit
2ec60a124b
2 changed files with 3 additions and 3 deletions
|
@ -1,8 +1,8 @@
|
|||
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
||||
|
||||
exports[`#scheme returns error when shorter string 1`] = `"expected URI with scheme [http|https] but but got [ftp://elastic.co]."`;
|
||||
exports[`#scheme returns error when shorter string 1`] = `"expected URI with scheme [http|https] but got [ftp://elastic.co]."`;
|
||||
|
||||
exports[`#scheme returns error when shorter string 2`] = `"expected URI with scheme [http|https] but but got [file:///kibana.log]."`;
|
||||
exports[`#scheme returns error when shorter string 2`] = `"expected URI with scheme [http|https] but got [file:///kibana.log]."`;
|
||||
|
||||
exports[`#validate throws when returns string 1`] = `"validator failure"`;
|
||||
|
||||
|
|
|
@ -36,7 +36,7 @@ export class URIType extends Type<string> {
|
|||
case 'string.base':
|
||||
return `expected value of type [string] but got [${typeDetect(value)}].`;
|
||||
case 'string.uriCustomScheme':
|
||||
return `expected URI with scheme [${scheme}] but but got [${value}].`;
|
||||
return `expected URI with scheme [${scheme}] but got [${value}].`;
|
||||
case 'string.uri':
|
||||
return `value is [${value}] but it must be a valid URI (see RFC 3986).`;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue