Printing only a warning about error opening stream