check for '[object Error]'