Status 500 on unsucessful save attempt. Ref #227
This commit is contained in:
parent
0afad5ec3f
commit
74b117bccb
@ -152,12 +152,12 @@ class SessionController extends Controller{
|
||||
$view->touch($path);
|
||||
}
|
||||
\OCP\JSON::success();
|
||||
exit();
|
||||
} catch (\Exception $e){
|
||||
Helper::warnLog('Saving failed. Reason:' . $e->getMessage());
|
||||
\OCP\JSON::error(array('message'=>$e->getMessage()));
|
||||
exit();
|
||||
//\OCP\JSON::error(array('message'=>$e->getMessage()));
|
||||
\OC_Response::setStatus(500);
|
||||
}
|
||||
exit();
|
||||
}
|
||||
|
||||
public static function info(){
|
||||
|
Loading…
x
Reference in New Issue
Block a user