- scheduler: message tweak

svn path=/trunk/boinc/; revision=22384
This commit is contained in:
David Anderson 2010-09-17 22:01:42 +00:00
parent 7c4363a7ba
commit 7ac7bdcb04
3 changed files with 24 additions and 10 deletions

View File

@ -6674,3 +6674,10 @@ David 16 Sept 2010
client/
client_msgs.cpp
cs_scheduler.cpp
David 17 Sept 2010
- scheduler: message tweak
tools/
create_work.cpp
sched/
handle_request.cpp

View File

@ -827,7 +827,7 @@ bool send_code_sign_key(char* code_sign_key) {
retval = read_file_malloc(path, signature);
if (retval) {
g_reply->insert_message(
_("You may have an outdated code signing key. Try attaching and reattaching this project."),
_("The project has changed its security key. Please remove and add this project."),
"notice"
);
} else {

View File

@ -197,15 +197,22 @@ int main(int argc, const char** argv) {
i++;
}
#define CHKARG(x,m) do { if (!(x)) { fprintf(stderr, "create_work: bad command line: "m"\n"); exit(1); } } while (0)
#define CHKARG_STR(v,m) CHKARG(strlen(v),m)
CHKARG_STR(app.name , "need --appname");
CHKARG_STR(wu.name , "need --wu_name");
CHKARG_STR(wu_template_file , "need --wu_template");
CHKARG_STR(result_template_file , "need --result_template");
#undef CHKARG
#undef CHKARG_STR
if (!strlen(app.name)) {
fprintf(stderr, "create_work: missing --appname\n");
exit(1);
}
if (!strlen(wu.name)) {
fprintf(stderr, "create_work: missing --wu_name\n");
exit(1);
}
if (!strlen(wu_template_file)) {
fprintf(stderr, "create_work: missing --wu_template\n");
exit(1);
}
if (!strlen(result_template_file)) {
fprintf(stderr, "create_work: missing --result_template\n");
exit(1);
}
if (assign_flag) {
if (!strstr(wu.name, ASSIGNED_WU_STR)) {