Shouldn't this raise an exception, instead of logging?