Add error message for some cases