better error message for modules returning the wrong value

This commit is contained in:
Eli Schwartz 2021-07-29 18:41:24 -04:00
parent e8a85fa8a2
commit e33ba28ec4
No known key found for this signature in database
GPG Key ID: CEB167EFB5722BD6
1 changed files with 1 additions and 1 deletions

View File

@ -471,7 +471,7 @@ class Interpreter(InterpreterBase, HoldableObject):
ExternalProgram)):
pass
else:
raise InterpreterException('Module returned a value of unknown type.')
raise InterpreterException(f'Module returned a value of unknown type {v!r}.')
def get_build_def_files(self) -> T.List[str]:
return self.build_def_files