Skip to content

Return nil when read_file not found file #113

@Intemporel

Description

@Intemporel

I think we can add return nil or something like that here :

throw script_exception("read_file","no such file:" + std::string (path));

And in script we can now use read_file like that :

local myFile = read_file(path)

if ( myFile ) then
    ...
end

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions