Hashar has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/114462

Change subject: json-lint.php: report json_last_error_msg() on error
......................................................................

json-lint.php: report json_last_error_msg() on error

Was previously always printing "json decode error"

Change-Id: I2133b7e012ceb51a5fb074426b733dfd3374c83f
---
M bin/json-lint.php
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/integration/jenkins 
refs/changes/62/114462/1

diff --git a/bin/json-lint.php b/bin/json-lint.php
index 9de607a..2eb1212 100755
--- a/bin/json-lint.php
+++ b/bin/json-lint.php
@@ -78,7 +78,7 @@
                $result = lint_json_file( $file->getPathname() );
                if ( !$result ) {
                        $exitCode = 1;
-                       fwrite( STDERR, $file->getPathname() . ": json decode 
error.\n" );
+                       fwrite( STDERR, $file->getPathname() . ": " . 
json_last_error_msg() . "\n" );
                }
        }
 }

-- 
To view, visit https://gerrit.wikimedia.org/r/114462
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I2133b7e012ceb51a5fb074426b733dfd3374c83f
Gerrit-PatchSet: 1
Gerrit-Project: integration/jenkins
Gerrit-Branch: master
Gerrit-Owner: Hashar <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to