git.cweiske.de
/
phinde.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add log class
[phinde.git]
/
bin
/
setup.php
diff --git
a/bin/setup.php
b/bin/setup.php
index 27c5c460504cd33a09d834d0a0f62f1357de6cc9..ba97493db4f77812597a871c591d48e170c6da1e 100755
(executable)
--- a/
bin/setup.php
+++ b/
bin/setup.php
@@
-9,7
+9,7
@@
require_once __DIR__ . '/../src/init.php';
$json = file_get_contents(__DIR__ . '/../data/elasticsearch-mapping.json');
if (json_decode($json) === null) {
$json = file_get_contents(__DIR__ . '/../data/elasticsearch-mapping.json');
if (json_decode($json) === null) {
-
echo "Error: Schema JSON is broken\n"
;
+
Log::error("Error: Schema JSON is broken")
;
chdir(__DIR__ . '/../');
passthru('json_pp -t null < data/elasticsearch-mapping.json');
exit(1);
chdir(__DIR__ . '/../');
passthru('json_pp -t null < data/elasticsearch-mapping.json');
exit(1);