Uploaded image for project: 'eZ Publish / Platform'
  1. eZ Publish / Platform
  2. EZP-31986

CompileAssetsCommand does not throw an exception when failing

    XMLWordPrintable

Details

    Description

      Currently, CompileAssetsCommand throws no exception in case of e.g. syntax error. That results in a successfully finished build. Due to that, site might be missing a manifest.json file that causes 500 error.

      Steps to reproduce:
      1. Add a syntax error to any CSS or JS file in your project.
      2. Execute php bin/console ezplatform:encore:compile.

      Result:
      Command will return exit code 2 but not fail with an exception.

      Attachments

        Activity

          People

            Unassigned Unassigned
            konrad.oboza@ibexa.co Konrad Oboza
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: