We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e27e941 commit be3378cCopy full SHA for be3378c
src/PHPDraft/Parse/BaseParser.php
@@ -72,7 +72,7 @@ public function parseToJson()
72
73
if (json_last_error() !== JSON_ERROR_NONE)
74
{
75
- file_put_contents('php://stdout', 'ERROR: invalid json in ' . $this->tmp_dir . '/index.json');
+ file_put_contents('php://stderr', 'ERROR: invalid json in ' . $this->tmp_dir . '/index.json');
76
throw new \RuntimeException('Drafter generated invalid JSON (' . json_last_error_msg() . ')', 2);
77
}
78
@@ -82,6 +82,7 @@ public function parseToJson()
82
$warnings = true;
83
$prefix = strtoupper($item->meta->classes[0]);
84
$error = $item->content;
85
+ file_put_contents('php://stderr', "$prefix: $error\n");
86
file_put_contents('php://stdout', "<pre>$prefix: $error</pre>\n");
87
88
0 commit comments