Fixed a bug where an error should have been a warning.