A warning is more suitable than a simple debug message as this would be considered a programming error.