Remove duplicate but in error message (#50530)
This commit is contained in:
parent
2516f94ee6
commit
790739b41b
|
@ -1,8 +1,8 @@
|
||||||
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
// 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"`;
|
exports[`#validate throws when returns string 1`] = `"validator failure"`;
|
||||||
|
|
||||||
|
|
|
@ -36,7 +36,7 @@ export class URIType extends Type<string> {
|
||||||
case 'string.base':
|
case 'string.base':
|
||||||
return `expected value of type [string] but got [${typeDetect(value)}].`;
|
return `expected value of type [string] but got [${typeDetect(value)}].`;
|
||||||
case 'string.uriCustomScheme':
|
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':
|
case 'string.uri':
|
||||||
return `value is [${value}] but it must be a valid URI (see RFC 3986).`;
|
return `value is [${value}] but it must be a valid URI (see RFC 3986).`;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue