Skip to content

Commit

Permalink
Fix injectServer/injectDebugger file path for log
Browse files Browse the repository at this point in the history
  • Loading branch information
jhen0409 committed Jun 7, 2016
1 parent ffcd938 commit 35728b9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,11 @@ module.exports = argv => {
if (argv.revert) {
const passServ = injectServer.revert(modulePath);
let msg = 'Revert injection of RemoteDev server from React Native local server';
log(passServ, msg + (!passServ ? `, the file '${injectServer.path}' not found.` : '.'));
log(passServ, msg + (!passServ ? `, the file '${injectServer.fullPath}' not found.` : '.'));

const passDbg = injectDebugger.revert(modulePath);
msg = 'Revert injection of RemoteDev monitor from React Native debugger';
log(passDbg, msg + (!passDbg ? `, the file '${injectDebugger.path}' not found.` : '.'));
log(passDbg, msg + (!passDbg ? `, the file '${injectDebugger.fullPath}' not found.` : '.'));

if (!passServ || !passDbg) return false;
return true;
Expand All @@ -58,15 +58,15 @@ module.exports = argv => {
if (argv.injectserver) {
const pass = injectServer.inject(modulePath, assignSecureOptions(options, argv));
const msg = 'Inject RemoteDev server into React Native local server';
log(pass, msg + (pass ? '.' : `, the file '${injectServer.path}' not found.`));
log(pass, msg + (pass ? '.' : `, the file '${injectServer.fullPath}' not found.`));
if (!pass) return false;
}

// Inject debugger
if (argv.injectdebugger) {
const pass = injectDebugger.inject(modulePath, bundleCode, options);
const msg = 'Inject RemoteDev monitor into React Native debugger';
log(pass, msg + (pass ? '.' : `, the file '${injectDebugger.path}' not found.`));
log(pass, msg + (pass ? '.' : `, the file '${injectDebugger.fullPath}' not found.`));
if (!pass) return false;
}

Expand Down

0 comments on commit 35728b9

Please sign in to comment.