Error message if no file provided

Please merge this simple patch. Thanks !