document-drive 1.0.0-alpha.44 → 1.0.0-alpha.45
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/server/index.ts +10 -1
package/package.json
CHANGED
package/src/server/index.ts
CHANGED
|
@@ -219,9 +219,16 @@ export class DocumentDriveServer extends BaseDocumentDriveServer {
|
|
|
219
219
|
}
|
|
220
220
|
|
|
221
221
|
async initialize() {
|
|
222
|
+
const errors: Error[] = [];
|
|
222
223
|
const drives = await this.getDrives();
|
|
223
224
|
for (const drive of drives) {
|
|
224
|
-
await this._initializeDrive(drive)
|
|
225
|
+
await this._initializeDrive(drive).catch(error => {
|
|
226
|
+
logger.error(
|
|
227
|
+
`Error initializing drive ${drive}`,
|
|
228
|
+
error
|
|
229
|
+
);
|
|
230
|
+
errors.push(error as Error);
|
|
231
|
+
});
|
|
225
232
|
}
|
|
226
233
|
|
|
227
234
|
// if network connect comes online then
|
|
@@ -238,6 +245,8 @@ export class DocumentDriveServer extends BaseDocumentDriveServer {
|
|
|
238
245
|
|
|
239
246
|
});
|
|
240
247
|
}
|
|
248
|
+
|
|
249
|
+
return errors.length === 0 ? null : errors;
|
|
241
250
|
}
|
|
242
251
|
|
|
243
252
|
private async _initializeDrive(driveId: string) {
|