Skip to content

Commit

Permalink
Merge pull request #5212 from bythos14/dir_lock_err_msg
Browse files Browse the repository at this point in the history
Add more error messages for directory locking
  • Loading branch information
AenBleidd authored Apr 29, 2023
2 parents f718bfd + c264ac9 commit 86aef84
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion client/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,13 @@ static int initialize() {
if (!cc_config.allow_multiple_clients) {
retval = wait_client_mutex(".", 10);
if (retval) {
log_message_error("Another instance of BOINC is running.");
if (retval == ERR_ALREADY_RUNNING) {
log_message_error("Another instance of BOINC is running.");
} else if (retval == ERR_OPEN) {
log_message_error("Failed to open lockfile. Check file/directory permissions.");
} else {
log_message_error("Failed to lock directory.", retval);
}
return ERR_EXEC;
}
}
Expand Down

0 comments on commit 86aef84

Please sign in to comment.