Upgraded read tag to use resolution keyword method.

This commit is contained in:
Brad Arant committed 2024-11-11 09:30:57 -08:00
1 parent 2e340bae1c
commit 07bcc560f5
1 file changed
+2
+2
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.");