Correct fs.read function name in exception message

This commit is contained in:
Tristan Partin 2024-02-23 12:44:55 -06:00 committed by Dylan Baker
parent 35c6052723
commit 0b19d1c015
1 changed files with 1 additions and 1 deletions

View File

@ -235,7 +235,7 @@ class FSModule(ExtensionModule):
if isinstance(path, File):
if path.is_built:
raise MesonException(
'fs.read_file does not accept built files() objects')
'fs.read does not accept built files() objects')
path = os.path.join(src_dir, path.relative_name())
else:
if sub_dir: