Skip to content

Instantly share code, notes, and snippets.

@desttinghim
Last active November 8, 2017 22:18
Show Gist options
  • Save desttinghim/01244dd228b48c3c1c028c1da30bbec8 to your computer and use it in GitHub Desktop.
Save desttinghim/01244dd228b48c3c1c028c1da30bbec8 to your computer and use it in GitHub Desktop.

DESCRIPTION

This call returns a string describing the error for a specified error code, which can be found using opendkim.get_error. This method does not rely on any state to function.

ARGUMENTS

Type: undefined

RETURN VALUES

  • returns a string describing the error code.

NOTES

  • none

EXAMPLE

try {
  var opendkim = new OpenDKIM();

  opendkim.verify({id: undefined});
  opendkim.chunk({
    message: message,
    length: message.length
  });
  opendkim.chunk_end();
  var error = opendkim.sig_geterror();
  if (error != 0) {
    throw error; 
  }
} catch (err) {
  console.log("Error: " + opendkim.sig_geterrorstr(err));
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment