Error out if serial file is empty