1. 28 Oct, 2017 1 commit
    • Remy Suen's avatar
      Expose JavaScript function name in thrown error · 63f2dac2
      Remy Suen authored
      When an error happens in libgit2, NodeGit will wrap the and expose
      the error code and message to be consumed via the JavaScript API.
      However, this information is often insufficient given the
      asynchronous nature of NodeGit and it may at times be unclear as to
      which JavaScript function caused the error on the libgit2 side. By
      exposing an 'errorFunction' property string that includes the name of
      the JavaScript function in the error, debugging should now be a lot
      easier as clients will now be able to quickly identify which
      JavaScript function in a long promise chain was the source of an
      error.
      Signed-off-by: default avatarRemy Suen <remy.suen@gmail.com>
      63f2dac2
  2. 31 Jan, 2017 1 commit
    • Remy Suen's avatar
      Expose libgit2 error code to clients when a promise fails · 8f911102
      Remy Suen authored
      When an API function of libgit2 fails within a promise, the promise is
      rejected with a JavaScript Error object that wraps the recorded error
      message in giterr_last(). However, the original non-zero return code of
      the API function is not exposed to the caller of the NodeGit API. This
      means that NodeGit clients cannot easily identify what the cause of an
      error is outside of parsing the Error object's message. This is
      an extremely volatile way of determining the cause as libgit2 may
      choose to alter the wording of the message at any time.
      
      To solve the problem above, the returned JavaScript Error object now
      esposes the libgit2 error code via its `errno` property.
      8f911102
  3. 09 Feb, 2016 2 commits
  4. 05 Feb, 2016 1 commit
  5. 04 Feb, 2016 1 commit
    • Tyler Wanek's avatar
      Manage diffs better · 9d548eca
      Tyler Wanek authored
      Only find similar if there is an added entry
      Free diffs when we are done with them.
      9d548eca
  6. 03 Feb, 2016 2 commits
  7. 02 Feb, 2016 1 commit