Unverified Commit 76de7fb8 authored by Rodrigo Nascimento's avatar Rodrigo Nascimento Committed by GitHub

Merge pull request #34 from RocketChat/compiler-errors

[FIX] Deploy command was not showing compiler errors
parents 5af7cf9e 6faabda5
......@@ -104,6 +104,10 @@ export default class Deploy extends Command {
} else if (!deployResult.success) {
throw new Error(`Deployment error: ${ deployResult.error }`);
}
if (deployResult.compilerErrors && deployResult.compilerErrors.length > 0) {
throw new Error(`Deployment compiler errors: \n${ JSON.stringify(deployResult.compilerErrors, null, 2) }`);
}
}
// expects the `path` to start with the /
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment