Upgraded read tag to use resolution keyword method.

This commit is contained in:
Brad Arant 2024-11-11 09:30:57 -08:00
parent 2e340bae1c
commit 07bcc560f5

View File

@ -13,6 +13,8 @@ namespace jet {
throw coreutils::Exception("name keyword must be specified.");
if(hasContainer)
throw coreutils::Exception("read tag does not have a container.");
resolveKeyword("file");
resolveKeyword("name");
fd = open(variables["file"].c_str(), O_RDONLY);
if(fd < 0)
throw coreutils::Exception("file name is not found.");