diff --git a/LidlToGrocy.lpr b/LidlToGrocy.lpr index c3e9e68..849829a 100644 --- a/LidlToGrocy.lpr +++ b/LidlToGrocy.lpr @@ -55,7 +55,7 @@ Application.LidlCountry := GetEx(['c', 'lidl-country'], 'lidl country' , 'EN'); Application.LidlLanguage := GetEx(['l', 'lidl-lang'], 'lidl language', 'en'); - Application.LidlToken := GetEx(['t', 'lidl-token'], 'lidl token'); + Application.LidlToken := GetEx(['t', 'lidl-token'], 'lidl token (see https://github.com/Andre0512/lidl-plus#commandline-tool)'); Application.LidlJsonFilePath := GetEx(['f', 'lidl-filepath'], 'lidl json file (optional)'); diff --git a/library/kernel.application.pas b/library/kernel.application.pas index b20e501..5fa3f97 100644 --- a/library/kernel.application.pas +++ b/library/kernel.application.pas @@ -191,6 +191,7 @@ function TLidlToGrocy.GetOFFProductInfo(var LidlProduct: TItemsLine): TOFFProduc try OFFProductInfo := TOpenFoodFactsService.GetProduct(LidlProduct.CodeInput); except + TLogger.Error('Failed OpenFoodFacts api call', []); end; end; @@ -221,7 +222,6 @@ procedure TLidlToGrocy.DoRun; Exit; end; - if (FLidlJsonFilePath <> '') and FileExists(FLidlJsonFilePath) then begin TLogger.Info('Loading json from file %s', [FLidlJsonFilePath]);