error if filename is empty