Skip to content

Commit

Permalink
fix(plugin-expo-device) Catch rejected promises
Browse files Browse the repository at this point in the history
  • Loading branch information
imjoehaines committed Jun 17, 2020
1 parent d913b23 commit 9c778bf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/plugin-expo-device/device.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ module.exports = {
// disk space could be inaccurate as it may change between now and when an
// error occurs, however it's unlikely to be drastically different
let freeDisk
FileSystem.getFreeDiskStorageAsync().then(freeDiskStorage => { freeDisk = freeDiskStorage })
FileSystem.getFreeDiskStorageAsync()
.then(freeDiskStorage => { freeDisk = freeDiskStorage })
.catch(err => client._logger.warn('Could not detect free disk space', err))

const device = {
id: Constants.installationId,
Expand Down

0 comments on commit 9c778bf

Please sign in to comment.