Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Soy errors are not being propagated #2

Closed
jbalsas opened this issue Mar 27, 2017 · 0 comments
Closed

Soy errors are not being propagated #2

jbalsas opened this issue Mar 27, 2017 · 0 comments
Assignees

Comments

@jbalsas
Copy link

jbalsas commented Mar 27, 2017

Add the following file:

`test/fixtures/src/compileError.soy

{namespace CompileError}

{template .render}
	{call Undeclared.render /}
{/template}

And the following test:

it('should exit with error when soy finishes with error', function(done) {
  console.log('running test');
      runMetal([
        'soy',
        '-s',
        'test/fixtures/src/**/CompileError.soy',
        '-d',
        'test/fixtures/src'
      ]).on('close', function(code) {
        assert.strictEqual(1, code);
        done();
      });
})

This might be caused by metal/metal-tools-soy#7

@robframpton robframpton self-assigned this Mar 27, 2017
robframpton pushed a commit to robframpton/metal-cli that referenced this issue Mar 27, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants