Skip to content

Commit

Permalink
Merge pull request #6035 from BOINC/dpa_submit15
Browse files Browse the repository at this point in the history
create_work: clarify error message
  • Loading branch information
AenBleidd authored Jan 28, 2025
2 parents 84cd863 + 297ce35 commit eabd32f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
3 changes: 3 additions & 0 deletions html/inc/result.inc
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,9 @@ function app_version_string($result) {
return anon_platform_string($result, tra("Apple GPU"));
}
$av = get_app_version($id);
if (!$av) {
return "missing app version $id";
}
$app = get_app($av->appid);
$platform = get_platform($av->platformid);
$n = $app->user_friendly_name;
Expand Down
7 changes: 5 additions & 2 deletions tools/process_input_template.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -468,8 +468,11 @@ static int process_workunit(
}
n_file_refs++;
} else if (xp.parse_string("command_line", cmdline)) {
if (command_line) {
boinc::fprintf(stderr, "Can't specify command line twice\n");
if (strlen(command_line)) {
boinc::fprintf(stderr,
"Can't specify command line %s; already specified as %s\n",
cmdline.c_str(), command_line
);
return ERR_XML_PARSE;
}
out += "<command_line>\n";
Expand Down

0 comments on commit eabd32f

Please sign in to comment.