Skip to content

Commit b4a5200

Browse files
committed
MAGETWO-43646: Sort ordering for static files pre-processors
- Fixed tests
1 parent dad2e6c commit b4a5200

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

lib/internal/Magento/Framework/View/Asset/PreProcessor/AlternativeSource.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,8 @@ public function process(Chain $chain)
103103
/** @var FallbackContext $context */
104104
$context = $chain->getAsset()->getContext();
105105
$chain->setContent($this->processContent($path, $content, $module, $context));
106-
106+
} catch (\Exception $e) {
107+
throw $e;
107108
} finally {
108109
$this->lockerProcess->unlockProcess();
109110
}

lib/internal/Magento/Framework/View/Test/Unit/Asset/PreProcessor/AlternativeSourceTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ protected function setUp()
8383
/**
8484
* Run test for process method (exception)
8585
*
86-
* @expectedException UnexpectedValueException
86+
* @expectedException \UnexpectedValueException
8787
* @expectedExceptionMessage "stdClass" has to implement the ContentProcessorInterface.
8888
*/
8989
public function testProcessException()

0 commit comments

Comments
 (0)