Changed error message to use const