Better error reporting (lastErrorPath, lastErrorMessage); added type '*'