Sounds like it is letting you know there is either a problem/issue with the battery or with the charger cord.
If it is the battery, it may need replacing.
If it is the cord, it may not be functioning correctly, not putting out enough power, to both run the laptop and charge the battery, so it would need replacing.