[react-packager] Fix error in template string and bump timeout

Summary:
Fix error in the template string (no plus, thinks it's a function).
And bump the timeout to 30 seconds because a file is taking more than 10 seconds `js/RKJSModules/Libraries/FBComponents/FBFed/FeedStoryFragments.js`
This commit is contained in:
Amjad Masad 2015-08-20 14:39:43 -07:00
parent febc03a38b
commit 3bfa90e433
1 changed files with 2 additions and 2 deletions

View File

@ -23,7 +23,7 @@ const readFile = Promise.denodeify(fs.readFile);
const MAX_CALLS_PER_WORKER = 600;
// Worker will timeout if one of the callers timeout.
const DEFAULT_MAX_CALL_TIME = 10000;
const DEFAULT_MAX_CALL_TIME = 30000;
const validateOpts = declareOpts({
projectRoots: {
@ -112,7 +112,7 @@ class Transformer {
}).catch(err => {
if (err.type === 'TimeoutError') {
const timeoutErr = new Error(
`TimeoutError: transforming ${filePath} took longer than `
`TimeoutError: transforming ${filePath} took longer than ` +
`${this._opts.transformTimeoutInterval / 1000} seconds.\n` +
`You can adjust timeout via the 'transformTimeoutInterval' option`
);