2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-06-24 15:05:36 +00:00

Better error message for missing file

This commit is contained in:
Mark Gurevich
2017-06-19 10:59:53 -04:00
parent beb7d5af12
commit 4cdad73b8f

View File

@ -689,7 +689,7 @@ sub parse_command_status {
$::UPLOAD_FILE = $update_file; # Save filename to upload
# Verify file exists and is readable
unless (-r $filename) {
xCAT::SvrUtils::sendmsg("Error accessing update file $filename", $callback);
xCAT::SvrUtils::sendmsg([1,"Cannot access $filename"], $callback);
return 1;
}
if ($check_version) {