-Fix error message when a template error fails a table lookup to be more helpful

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@1431 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jbjohnso 2008-05-16 19:03:18 +00:00
parent 0a4da3a31e
commit 452fb6ae1a

View File

@ -169,6 +169,7 @@ sub tabdb
my $ent;
if ($key eq "THISNODE" or $key eq '$NODE') {
$ent = $tabh->getNodeAttribs($node,[$field]);
$key="node=$node";
} else {
my %kp;
foreach (split /,/,$key) {
@ -182,7 +183,7 @@ sub tabdb
$tabh->close;
unless($ent and defined($ent->{$field})) {
unless ($blankok) {
$tmplerr="Unable to find requested $field from $table in this context";
$tmplerr="Unable to find requested $field from $table, with $key";
}
return "";
#return "#TABLEBAD:$table:field $field not found#";