mirror of
https://github.com/zoriya/flood.git
synced 2026-06-07 04:15:06 +00:00
server: ensure all promises are rejected with Error
This commit is contained in:
@@ -55,7 +55,7 @@ class DiskUsage extends (EventEmitter as new () => TypedEmitter<DiskUsageEvents>
|
||||
|
||||
updateDisks = () => {
|
||||
if (!isPlatformSupported()) {
|
||||
return Promise.reject();
|
||||
return Promise.reject(new Error());
|
||||
}
|
||||
|
||||
return diskUsage[process.platform as SupportedPlatform]()
|
||||
|
||||
Reference in New Issue
Block a user