diff --git a/packages/jest-runtime/package.json b/packages/jest-runtime/package.json index 3107b375a2ab..49114cf080da 100644 --- a/packages/jest-runtime/package.json +++ b/packages/jest-runtime/package.json @@ -1,6 +1,6 @@ { "name": "jest-runtime", - "version": "19.0.2", + "version": "19.0.3", "repository": { "type": "git", "url": "https://github.com/facebook/jest.git" diff --git a/packages/jest-runtime/src/transform.js b/packages/jest-runtime/src/transform.js index ca1101bdcc6f..3dc6cfd4470c 100644 --- a/packages/jest-runtime/src/transform.js +++ b/packages/jest-runtime/src/transform.js @@ -98,7 +98,8 @@ const writeCacheFile = (cachePath: Path, fileData: string) => { try { fs.writeFileSync(cachePath, fileData, 'utf8'); } catch (e) { - e.message = 'jest: failed to cache transform results in: ' + cachePath; + e.message = 'jest: failed to cache transform results in: ' + cachePath + + '\nFailure message: ' + e.message; removeFile(cachePath); throw e; }