boxerror: always pass second error string
This commit is contained in:
+1
-1
@@ -238,7 +238,7 @@ async function downloadImage(manifest) {
|
||||
const [dfError, diskUsage] = await safe(df.file(info.DockerRootDir));
|
||||
if (dfError) throw new BoxError(BoxError.FS_ERROR, `Error getting file system info: ${dfError.message}`);
|
||||
|
||||
if (diskUsage.available < (1024*1024*1024)) throw new BoxError(BoxError.DOCKER_ERROR, 'Not enough disk space to pull docker image', { diskUsage: diskUsage, dockerRootDir: info.DockerRootDir });
|
||||
if (diskUsage.available < (1024*1024*1024)) throw new BoxError(BoxError.DOCKER_ERROR, `Not enough disk space to pull docker image. available: ${diskUsage.available}`);
|
||||
|
||||
await docker.downloadImage(manifest);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user