From 4cdad73b8f2d710f537660f38d754a8d50d79cbc Mon Sep 17 00:00:00 2001 From: Mark Gurevich Date: Mon, 19 Jun 2017 10:59:53 -0400 Subject: [PATCH] Better error message for missing file --- xCAT-server/lib/xcat/plugins/openbmc.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xCAT-server/lib/xcat/plugins/openbmc.pm b/xCAT-server/lib/xcat/plugins/openbmc.pm index 3128b3f21..284f9d4a5 100644 --- a/xCAT-server/lib/xcat/plugins/openbmc.pm +++ b/xCAT-server/lib/xcat/plugins/openbmc.pm @@ -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) {