mirror of
https://github.com/rendercv/rendercv.git
synced 2026-10-23 12:48:47 -04:00
data_models: fix a validation error description
This commit is contained in:
1 parent
fc0f254051
commit
39729f9907
1 file changed
+2
-2
@@ -227,8 +227,8 @@ class EntryBase(RenderCVBaseModel):
|
||||
|
||||
elif not start_date_is_provided and end_date_is_provided:
|
||||
raise ValueError(
|
||||
'"end_date" is provided in of the entries, but "start_date" is not.'
|
||||
' Either provide both "start_date" and "end_date" or provide "date".',
|
||||
'"end_date" is provided, but "start_date" is not. Either provide both'
|
||||
' "start_date" and "end_date" or provide "date".',
|
||||
"start_date", # this is the location of the error
|
||||
"", # this supposed to be the value of the error
|
||||
)
|
||||
|
||||
Reference in new issue
Block a user