Comparing version 0.0.6 to 0.0.7
@@ -34,9 +34,11 @@ | ||
// error on failure | ||
if (err || !success) | ||
return callback(new Error('failed to convert file')); | ||
if (err) return callback(err); | ||
// error on failure | ||
if (!success) return callback(new Error('failed to convert file for an unknown reason')); | ||
fs.exists(destination, function (exists) { | ||
if (!exists) | ||
return callback(new Error('failed to save file to destination')); | ||
return callback(new Error('convert operation did not result in a file')); | ||
@@ -43,0 +45,0 @@ // success |
{ | ||
"name": "topdf", | ||
"version": "0.0.6", | ||
"version": "0.0.7", | ||
"description": "A node.js addon for Oracle's pdf export library.", | ||
@@ -5,0 +5,0 @@ "main": "lib/topdf.js", |
@@ -19,4 +19,10 @@ | ||
// no errors | ||
assert.ifError(err); | ||
if (err) { | ||
console.log(err); | ||
// no errors | ||
assert.ifError(err); | ||
} | ||
@@ -23,0 +29,0 @@ // successful |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
37031
54