Skip to content

Commit

Permalink
Closes #291 - Cryptic error message while trying to compile Detox.fra…
Browse files Browse the repository at this point in the history
…mework
  • Loading branch information
rotemmiz committed Sep 27, 2017
1 parent 4a2b3c4 commit 8633da7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion detox/src/devices/IosDriver.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ class IosDriver extends DeviceDriverBase {

if (fs.existsSync(detoxFrameworkDirPath)) {
if(!fs.existsSync(`${detoxFrameworkPath}`)) {
throw new Error(`is it currently building ?`);
throw new Error(`${detoxFrameworkDirPath} was found, but could not find Detox.framework inside it. This means that the Detox framework build process was interrupted.
To solve this, either delete ${detoxFrameworkDirPath} or run 'detox clean-framework-cache'`);
}
} else {
log.info(`Building Detox.framework (${environment.getDetoxVersion()}) into ${detoxFrameworkDirPath}...`);
Expand Down

0 comments on commit 8633da7

Please sign in to comment.