Skip to content

Commit

Permalink
minor change
Browse files Browse the repository at this point in the history
  • Loading branch information
CblPOK-git committed Jan 16, 2024
1 parent c886d00 commit 056afed
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions include/nil/blueprint/input_reader.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -429,21 +429,21 @@ namespace nil {
bool is_private = current_arg->hasAttribute(llvm::Attribute::PrivateInput);

if (is_private) {
if (private_input.size() == 0) {
error = "got argument with [[private_input]] attribute, but private input file was not provided or is empty (use -p flag to provide file name).";
return false;
}
if (private_input.size() <= priv_iter || !private_input[priv_iter].is_object()) {
if (private_input.size() == 0) {
error = "got argument with [[private_input]] attribute, but private input file was not provided or is empty (use -p flag to provide file name).";
return false;
}
error = "not enough values in the private input file.";
return false;
}
}
else {
if (public_input.size() == 0) {
error = "got argument without [[private_input]], but public input file was not provided or is empty (use -i flag to provide file name).";
return false;
}
if (public_input.size() <= pub_iter || !public_input[pub_iter].is_object()) {
if (public_input.size() == 0) {
error = "got argument without [[private_input]], but public input file was not provided or is empty (use -i flag to provide file name).";
return false;
}
error = "not enough values in the public input file.";
return false;
}
Expand Down

0 comments on commit 056afed

Please sign in to comment.