修复错误文案

This commit is contained in:
gouguoyin 2022-10-27 00:38:00 +08:00
parent 9e2e4d7fac
commit aebb2f72d1

View File

@ -25,17 +25,17 @@ var invalidDurationError = func(duration string) error {
// returns an invalid value error.
// 无效的时间字符串错误
var invalidValueError = func(value string) error {
return fmt.Errorf("cannot parse %q as carbon, please make sure the value is valid", value)
return fmt.Errorf("cannot parse string %q as carbon, please make sure the value is valid", value)
}
// returns an invalid layout error.
// 无效的布局模板错误
var invalidLayoutError = func(value, layout string) error {
return fmt.Errorf("cannot parse %q as carbon by layout %q, please make sure the value and layout match", value, layout)
return fmt.Errorf("cannot parse string %q as carbon by layout %q, please make sure the value and layout match", value, layout)
}
// returns an invalid format error.
// 无效的格式模板错误
var invalidFormatError = func(value, format string) error {
return fmt.Errorf("cannot parse %q as carbon by format %q, please make sure the value and format match", value, format)
return fmt.Errorf("cannot parse string %q as carbon by format %q, please make sure the value and format match", value, format)
}