Ensure errors and warnings with scalar input work