Skip to content

Commit

Permalink
CORE-414: cr fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Auris committed Jul 28, 2016
1 parent 3434698 commit b24d46d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
12 changes: 8 additions & 4 deletions src/Spryker/Zed/Oms/Business/Lock/TriggerLocker.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,14 @@ public function acquire($identifier)
try {
$affectedRows = $stateMachineLockEntity->save();
} catch (PropelException $exception) {
throw new LockException(sprintf(
'State machine trigger is locked. Propel exception: %s',
$exception->getMessage()
));
throw new LockException(
sprintf(
'State machine trigger is locked. Propel exception: %s',
$exception->getMessage()
),
$exception->getCode(),
$exception
);
}

return $affectedRows > 0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* Use of this software requires acceptance of the Evaluation License Agreement. See LICENSE file.
*/

namespace Spryker\Zed\StateMachine\Persistence\Propel;
namespace Spryker\Zed\Oms\Persistence\Propel;

use Orm\Zed\Oms\Persistence\Base\SpyOmsStateMachineLock as BaseSpyOmsStateMachineLock;

Expand Down

0 comments on commit b24d46d

Please sign in to comment.