Upgraded read tag to use resolution keyword method.
This commit is contained in:
parent
2e340bae1c
commit
07bcc560f5
@ -13,6 +13,8 @@ namespace jet {
|
|||||||
throw coreutils::Exception("name keyword must be specified.");
|
throw coreutils::Exception("name keyword must be specified.");
|
||||||
if(hasContainer)
|
if(hasContainer)
|
||||||
throw coreutils::Exception("read tag does not have a container.");
|
throw coreutils::Exception("read tag does not have a container.");
|
||||||
|
resolveKeyword("file");
|
||||||
|
resolveKeyword("name");
|
||||||
fd = open(variables["file"].c_str(), O_RDONLY);
|
fd = open(variables["file"].c_str(), O_RDONLY);
|
||||||
if(fd < 0)
|
if(fd < 0)
|
||||||
throw coreutils::Exception("file name is not found.");
|
throw coreutils::Exception("file name is not found.");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user