isAjax() && !$request->isWorkflow()); } public function handleRequestThrowable( AphrontRequest $request, $throwable) { // Log these; they don't get shown on the client and can be difficult // to debug. phlog($throwable); $response = new AphrontAjaxResponse(); $response->setError( array( 'code' => get_class($throwable), 'info' => $throwable->getMessage(), )); return $response; } }