|
if (items.length === 0) { |
|
throw new Error('Folder not found'); |
|
} |
This general Error means that getFolder is no longer returning an HTTPStatusCode with 404 in the event a folder doesn't exist. This is unexpected behavior, and is very hard to catch for a client.