mirror of
https://github.com/mrclay/minify.git
synced 2025-08-12 00:54:35 +02:00
Merge pull request #77 from glensc/temp-path-error
report temp path when mktemp fails
This commit is contained in:
@@ -70,7 +70,7 @@ class Minify_ClosureCompiler {
|
|||||||
{
|
{
|
||||||
self::_prepare();
|
self::_prepare();
|
||||||
if (! ($tmpFile = tempnam(self::$tempDir, 'cc_'))) {
|
if (! ($tmpFile = tempnam(self::$tempDir, 'cc_'))) {
|
||||||
throw new Exception('Minify_ClosureCompiler : could not create temp file.');
|
throw new Exception('Minify_ClosureCompiler : could not create temp file in "'.self::$tempDir.'".');
|
||||||
}
|
}
|
||||||
file_put_contents($tmpFile, $js);
|
file_put_contents($tmpFile, $js);
|
||||||
exec(self::_getCmd($options, $tmpFile), $output, $result_code);
|
exec(self::_getCmd($options, $tmpFile), $output, $result_code);
|
||||||
|
@@ -90,7 +90,7 @@ class Minify_YUICompressor {
|
|||||||
{
|
{
|
||||||
self::_prepare();
|
self::_prepare();
|
||||||
if (! ($tmpFile = tempnam(self::$tempDir, 'yuic_'))) {
|
if (! ($tmpFile = tempnam(self::$tempDir, 'yuic_'))) {
|
||||||
throw new Exception('Minify_YUICompressor : could not create temp file.');
|
throw new Exception('Minify_YUICompressor : could not create temp file in "'.self::$tempDir.'".');
|
||||||
}
|
}
|
||||||
file_put_contents($tmpFile, $content);
|
file_put_contents($tmpFile, $content);
|
||||||
exec(self::_getCmd($options, $type, $tmpFile), $output, $result_code);
|
exec(self::_getCmd($options, $type, $tmpFile), $output, $result_code);
|
||||||
|
Reference in New Issue
Block a user