polishing error message
added warning: statement has no effect