File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
app/code/Magento/Deploy/etc
lib/internal/Magento/Framework/Css/PreProcessor/Adapter/Less Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 9
9
<module name =" Magento_Deploy" setup_version =" 2.0.0" >
10
10
<sequence >
11
11
<module name =" Magento_Store" />
12
+ <module name =" Magento_Developer" />
12
13
</sequence >
13
14
</module >
14
15
</config >
Original file line number Diff line number Diff line change 5
5
*/
6
6
namespace Magento \Framework \Css \PreProcessor \Adapter \Less ;
7
7
8
+ use Magento \Setup \Module \I18n \Dictionary \Phrase ;
8
9
use Psr \Log \LoggerInterface ;
9
10
use Magento \Framework \App \State ;
10
11
use Magento \Framework \View \Asset \File ;
@@ -88,15 +89,15 @@ public function processContent(File $asset)
88
89
$ errorMessage = PHP_EOL . self ::ERROR_MESSAGE_PREFIX . PHP_EOL . $ path ;
89
90
$ this ->logger ->critical ($ errorMessage );
90
91
91
- throw new ContentProcessorException (__ ($ errorMessage ));
92
+ throw new ContentProcessorException (new Phrase ($ errorMessage ));
92
93
}
93
94
94
95
return $ content ;
95
96
} catch (\Exception $ e ) {
96
97
$ errorMessage = PHP_EOL . self ::ERROR_MESSAGE_PREFIX . PHP_EOL . $ path . PHP_EOL . $ e ->getMessage ();
97
98
$ this ->logger ->critical ($ errorMessage );
98
99
99
- throw new ContentProcessorException (__ ($ errorMessage ));
100
+ throw new ContentProcessorException (new Phrase ($ errorMessage ));
100
101
}
101
102
}
102
103
}
You can’t perform that action at this time.
0 commit comments