2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-08-01 17:17:36 +00:00

Add non zero return code to the error callback

This commit is contained in:
Victor Hu
2019-05-07 10:36:19 -04:00
parent cf694222dc
commit 5188f3a526

View File

@@ -2024,7 +2024,7 @@ sub copycd
#If they say to call it something unidentifiable, give up?
$callback->(
{
error => "The name specified ($distname) is not supported. Use the following format: rh*,pkvm*,centos*,fedora*,SL*,ol*"
error => "The name specified ($distname) is not supported. Use the following format: rh*,pkvm*,centos*,fedora*,SL*,ol*", errorcode => [1]
}
);
return;
@@ -2143,7 +2143,7 @@ sub copycd
{
$callback->(
{
error => "Requested distribution architecture $arch, but media is $darch"
error => "Requested distribution architecture $arch, but media is $darch", errorcode => [1]
}
);
return;
@@ -2156,7 +2156,7 @@ sub copycd
{
$callback->(
{
error => "ARCH not be detected, provide an OS ARCH using the -a option. (ppc64le, x86_64)"
error => "ARCH not be detected, provide an OS ARCH using the -a option. (ppc64le, x86_64)", errorcode => [1]
}
);
return;