commitplease
Advanced tools
Comparing version 1.5.1 to 1.6.0
{ | ||
"name": "commitplease", | ||
"version": "1.5.1", | ||
"version": "1.6.0", | ||
"description": "Validates strings as commit messages", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -32,3 +32,10 @@ (function avoidSelfInstall() { | ||
createLink: function() { | ||
fs.symlinkSync( symlink, hook ); | ||
try { | ||
fs.symlinkSync( symlink, hook ); | ||
} catch(e) { | ||
if (/EPERM/.test(e.message)) { | ||
console.error("Failed to create symlink. If you're running this on Windows, make sure you execute this as admin"); | ||
} | ||
throw e; | ||
} | ||
}, | ||
@@ -35,0 +42,0 @@ destroyLink: function() { |
9653
257