Capture registration errors #24

Closed
opened 2018-11-10 21:35:49 +00:00 by Ghost · 1 comment

Hi,

How can i capture registration errors (for example: authorizations were not fetched) with the domain and some other important data?

Thanks

Hi, How can i capture registration errors (for example: authorizations were not fetched) with the domain and some other important data? Thanks
Owner

Greenlock v3 now has a notify callback that fires on all types of events

var pkg = require('./package.json');
var Greenlock = require('greenlock');
var greenlock = Greenlock.create({
    packageAgent: pkg.name + '/' + pkg.version,
    maintainerEmail: pkg.author,
    staging: true,
    manager: require('greenlock-manager-fs').create({
        configFile: '~/.config/greenlock/manager.json'
    }),
    notify: function(event, details) {
        if ('error' === event) {
            // `details` is an error object in this case
            console.error(details);
        }
    }
});
Greenlock v3 now has a `notify` callback that fires on all types of events ``` var pkg = require('./package.json'); var Greenlock = require('greenlock'); var greenlock = Greenlock.create({ packageAgent: pkg.name + '/' + pkg.version, maintainerEmail: pkg.author, staging: true, manager: require('greenlock-manager-fs').create({ configFile: '~/.config/greenlock/manager.json' }), notify: function(event, details) { if ('error' === event) { // `details` is an error object in this case console.error(details); } } }); ```
Sign in to join this conversation.
No Label
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: coolaj86/greenlock.js-ARCHIVED#24
No description provided.