error reporting in simple example app