You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Mods-for-HESK-Netsyms/api/Core/json_error.php

14 lines
331 B
PHP

<?php
function print_error($title, $message, $logId = null, $response_code = 500) {
require_once(__DIR__ . '/output.php');
$error = array();
$error['type'] = 'ERROR';
$error['title'] = $title;
$error['message'] = $message;
$error['logId'] = $logId;
print output($error, $response_code);
return;
}