diff options
Diffstat (limited to 'engine/lib/api.php')
-rw-r--r-- | engine/lib/api.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engine/lib/api.php b/engine/lib/api.php index e33d0bb6d..2751e2166 100644 --- a/engine/lib/api.php +++ b/engine/lib/api.php @@ -807,14 +807,14 @@ return $API_OUTPUT_FUNCTIONS[$format]($result->toStdClass()); // We got here, so no output format was found. Output an error - $result = print_r($result, true); + $result = print_r($result->toStdClass(), true); return <<< END <html> <head><title>Something went wrong...</title></head> <body> <h1>API Output Error</h1> - <p>Something went badly wrong while outputting the result of your request to '$format'. The result and any errors are displayed in + <p>Something went badly wrong while outputting the result of your request in '$format' format. The result and any errors are displayed in raw text below.</p> <pre> $result |