Front End Error Reporting

Following Khazhy's advice :)
Added a test case :)