HomeSoftware Heritage

Produce a better error for the puppet downloader when file not found

Description

Produce a better error for the puppet downloader when file not found

Newer versions of Puppet raise the error Puppet::HTTP::RouteError when the file is not found. This resulted not only in a misleading error but also an error without the original url.

This commit changes this. It catches the error and produces an error with the url in it. Unfortunately, the original misleading error is still produces, so we try to elaborate a bit in the error we produce.

Details

Provenance
Bert Hajee <bert.hajee@enterprisemodules.com>Authored on Mar 2 2021, 9:58 PM
olasdPushed on Dec 28 2021, 10:47 AM
Parents
R144:6df1239784b1: Merge pull request #433 from jramosf/patch-1
Branches
Unknown
Tags
Unknown

Event Timeline

Bert Hajee <bert.hajee@enterprisemodules.com> committed R144:fb67798b3b0d: Produce a better error for the puppet downloader when file not found (authored by Bert Hajee <bert.hajee@enterprisemodules.com>).Mar 2 2021, 10:00 PM