Change return value of getItem() to error message