Update Controller.php
Merge pull request #4 from dripolles/patch-1

Fix error reporting