add friend error handler