Comparing version 0.4.3 to 0.4.4
@@ -9,3 +9,14 @@ (function() { | ||
} | ||
return require(path); | ||
try { | ||
return require(path); | ||
} catch (e) { | ||
if (e.code === "MODULE_NOT_FOUND") { | ||
throw { | ||
message: "Censeo could not find the file '" + path + "'", | ||
code: e.code | ||
}; | ||
} else { | ||
throw e; | ||
} | ||
} | ||
}; | ||
@@ -12,0 +23,0 @@ pogoWrappers = function() { |
{ | ||
"name": "censeo", | ||
"version": "0.4.3", | ||
"version": "0.4.4", | ||
"description": "Run arbitrary JavaScript or PogoScript on a server", | ||
@@ -5,0 +5,0 @@ "author": "Derek Ekins <derek@spathi.com>", |
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
16270
242