added error message. re-tabbed to 4 spaces