add handling for the error happens in table resource operation

This commit is contained in:
daniceexi 2014-04-23 06:12:07 -04:00
parent 852e6d8bd0
commit 14b8749111

View File

@ -2339,7 +2339,11 @@ sub filterData {
}
if (defined ($_->{errorcode})) {
$outputerror->{errorcode} = $_->{errorcode}->[0];
if (ref($_->{errorcode}) eq 'ARRAY') {
$outputerror->{errorcode} = $_->{errorcode}->[0];
} else {
$outputerror->{errorcode} = $_->{errorcode};
}
} else {
# set the default errorcode to '1'
$outputerror->{errorcode} = '1';