subversion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rhuij...@apache.org
Subject svn commit: r1667315 - /subversion/trunk/subversion/mod_dav_svn/reports/get-location-segments.c
Date Tue, 17 Mar 2015 14:38:06 GMT
Author: rhuijben
Date: Tue Mar 17 14:38:06 2015
New Revision: 1667315

URL: http://svn.apache.org/r1667315
Log:
Following up on r1667233, provide an APR error code for Subversion
clients in mod_dav_svn.

* subversion/mod_dav_svn/reports/get-location-segments.c
  (dav_svn__get_location_segments_report): Pass the apr error
    the other ra layers return for a similar error.

Modified:
    subversion/trunk/subversion/mod_dav_svn/reports/get-location-segments.c

Modified: subversion/trunk/subversion/mod_dav_svn/reports/get-location-segments.c
URL: http://svn.apache.org/viewvc/subversion/trunk/subversion/mod_dav_svn/reports/get-location-segments.c?rev=1667315&r1=1667314&r2=1667315&view=diff
==============================================================================
--- subversion/trunk/subversion/mod_dav_svn/reports/get-location-segments.c (original)
+++ subversion/trunk/subversion/mod_dav_svn/reports/get-location-segments.c Tue Mar 17 14:38:06
2015
@@ -201,11 +201,13 @@ dav_svn__get_location_segments_report(co
     end_rev = 0;
 
   if (end_rev > start_rev)
-    return dav_svn__new_error_svn(resource->pool, HTTP_BAD_REQUEST, 0,
+    return dav_svn__new_error_svn(resource->pool, HTTP_BAD_REQUEST,
+                                  SVN_ERR_FS_NO_SUCH_REVISION,
                                   "End revision must not be younger than "
                                   "start revision");
   if (start_rev > peg_revision)
-    return dav_svn__new_error_svn(resource->pool, HTTP_BAD_REQUEST, 0,
+    return dav_svn__new_error_svn(resource->pool, HTTP_BAD_REQUEST,
+                                  SVN_ERR_FS_NO_SUCH_REVISION,
                                   "Start revision must not be younger than "
                                   "peg revision");
 



Mime
View raw message