This commit is contained in:
narawat lamaiin
2024-08-10 18:02:01 +07:00
parent 9251fbf7cc
commit 07cd336d0a
2 changed files with 21 additions and 11 deletions

View File

@@ -400,17 +400,17 @@ function extractWineAttributes_1(a::T1, input::T2)::String where {T1<:agent, T2<
#[PENDING] check if the following attributes has more than 1 name
x = length(split(responsedict[:grape_variety], ",")) * length(split(responsedict[:grape_variety], "/"))
if x > 1
errornote = "Note: You can put only one name in grape_variety."
errornote = "Note: You can put only one name in grape_variety. Pick one."
error("only a single grape_variety name is allowed")
end
x = length(split(responsedict[:country], ",")) * length(split(responsedict[:country], "/"))
if x > 1
errornote = "Note: You can put only one name in country."
errornote = "Note: You can put only one name in country. Pick one."
error("only a single country name is allowed")
end
x = length(split(responsedict[:region], ",")) * length(split(responsedict[:region], "/"))
if x > 1
errornote = "Note: You can put only one name in region."
errornote = "Note: You can put only one name in region. Pick one."
error("only a single region name is allowed")
end