Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormattab <matthieu.aubry@gmail.com>2014-10-07 01:17:57 +0400
committermattab <matthieu.aubry@gmail.com>2014-10-07 01:17:57 +0400
commit092fda637eb967dd8aa0ca01c3817475effca8fc (patch)
treef5900b558f6da94ed72b3271c79387fc2dc1f6f8 /core/Tracker.php
parent733ef22246b50e91533e518ea407f74c9587d30e (diff)
When tracker fails, return error code so that it fails the tests.
Diffstat (limited to 'core/Tracker.php')
-rw-r--r--core/Tracker.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/core/Tracker.php b/core/Tracker.php
index 3aa27237a1..72bd3cd289 100644
--- a/core/Tracker.php
+++ b/core/Tracker.php
@@ -452,6 +452,7 @@ class Tracker
}
Common::sendHeader('Content-Type: application/json');
echo Common::json_encode($result);
+ die(1);
exit;
}
@@ -468,8 +469,9 @@ class Tracker
Common::sendHeader('Content-Type: text/html; charset=utf-8');
echo $this->getMessageFromException($e);
} else {
- $this->outputTransparentGif ();
+ $this->outputTransparentGif();
}
+ die(1);
exit;
}