Added basic error reporting (on client side)