better error message for modules returning the wrong value

pull/9348/head
Eli Schwartz 3 years ago
parent e8a85fa8a2
commit e33ba28ec4
No known key found for this signature in database
GPG Key ID: CEB167EFB5722BD6
  1. 2
      mesonbuild/interpreter/interpreter.py

@ -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

Loading…
Cancel
Save