File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -632,7 +632,7 @@ protected function pathCreateChecks($path) {
632632			$ mounts$ this mountManager ->findIn ($ pathgetPath ());
633633			foreach  ($ mountsas  $ mount
634634				if  ($ mountgetStorage ()->instanceOfStorage ('\OCA\Files_Sharing\ISharedStorage ' )) {
635- 					throw  new  \InvalidArgumentException ('Path contains files shared with you ' );
635+ 					throw  new  \InvalidArgumentException ('You cannot share a folder that contains other shares ' );
636636				}
637637			}
638638		}
Original file line number Diff line number Diff line change @@ -2273,7 +2273,7 @@ public function testLinkCreateChecksReadOnly() {
22732273
22742274	public  function  testPathCreateChecksContainsSharedMount () {
22752275		$ this expectException (\InvalidArgumentException::class);
2276- 		$ this expectExceptionMessage ('Path contains files shared with you ' );
2276+ 		$ this expectExceptionMessage ('You cannot share a folder that contains other shares ' );
22772277
22782278		$ path$ this createMock (Folder::class);
22792279		$ pathmethod ('getPath ' )->willReturn ('path ' );
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments