diff --git a/website/api/controllers/vpp-proxy/register-one-fleet-instance-using-vpp.js b/website/api/controllers/vpp-proxy/register-one-fleet-instance-using-vpp.js index 7cd46622d6..341946f4c5 100644 --- a/website/api/controllers/vpp-proxy/register-one-fleet-instance-using-vpp.js +++ b/website/api/controllers/vpp-proxy/register-one-fleet-instance-using-vpp.js @@ -47,9 +47,9 @@ module.exports = { sails.config.custom.licenseKeyGeneratorPublicKey, { algorithm: 'ES256' } ); - } catch(unusedErr) { - // If a license could not be verified, log the error name - sails.log.info('VPP auth rejected:', unusedErr.name); + } catch(err) { + // If a license could not be verified, log the error name and message + sails.log.info('VPP proxy could not verify Fleet license:', err.name, err.message); // If there is an error parsing the provided fleetLicenseKey, return a couldNotVerifyLicense response. throw 'couldNotVerifyLicense';