Add the LockManager error to LocalFileLockError exceptions

Change-Id: Ibfa7312993806554f7939b4f5692e30714f71304
This commit is contained in:
Aaron Schulz 2016-05-24 00:06:36 -07:00
parent 8b9584646b
commit e724d14495

View file

@ -1928,7 +1928,9 @@ class LocalFile extends File {
$dbw->rollback( __METHOD__ );
}
throw new LocalFileLockError(
"Could not acquire lock for '{$this->getName()}' ($waited sec)." );
"Could not acquire lock for '{$this->getName()} ($waited sec): " .
$status->getWikiText( false, false, 'en' )
);
}
// Release the lock *after* commit to avoid row-level contention
$this->locked++;