Closed davepacheco closed 7 years ago
This appears to be fallout from the assert-plus update under #246.
This change causes an "mfind" on an object to work:
$ git diff HEAD
diff --git a/lib/client.js b/lib/client.js
index 4fe45e2..c13be29 100644
--- a/lib/client.js
+++ b/lib/client.js
@@ -88,7 +88,7 @@ function InvalidDirectoryError(dir, ent) {
Error.call(this);
assert.string(dir, 'dir');
- assert.object(ent, 'ent');
+ assert.optionalObject(ent, 'ent');
this.name = 'InvalidDirectoryError';
this.message = dir + ' is an invalid manta directory';
Here's an easy way to reproduce it: