Skip to content
Permalink
Browse files

Minor updates

  • Loading branch information...
tienvx committed Apr 15, 2019
1 parent 2c4bbf6 commit 45299305732a77a5e4c077b4a33c5fbb64c596ca
Showing with 3 additions and 3 deletions.
  1. +1 −1 LICENSE
  2. +1 −1 src/Command/ExecuteTaskCommand.php
  3. +1 −1 src/Command/GeneratePathCommand.php
@@ -1,4 +1,4 @@
Copyright (c) 2018 Tien Xuan Vo
Copyright (c) 2019 Tien Xuan Vo

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
@@ -128,7 +128,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
foreach ($generator->getAvailableTransitions($workflow, $subject, $task->getMetaData()) as $transitionName) {
try {
if (!$generator->applyTransition($workflow, $subject, $transitionName)) {
throw new Exception(sprintf('Generator %s generated transition %s that can not be applied', $task->getGenerator(), $transitionName));
throw new Exception(sprintf("Generator '%s' generated transition '%s' that can not be applied", $task->getGenerator(), $transitionName));
}
} catch (Throwable $throwable) {
throw $throwable;
@@ -85,7 +85,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
foreach ($generator->getAvailableTransitions($workflow, $subject, $metaData) as $transitionName) {
try {
if (!$generator->applyTransition($workflow, $subject, $transitionName)) {
throw new Exception(sprintf('Generator %s generated transition %s that can not be applied', $generatorName, $transitionName));
throw new Exception(sprintf("Generator '%s' generated transition '%s' that can not be applied", $generatorName, $transitionName));
}
} finally {
$data = $subject->getStoredData();

0 comments on commit 4529930

Please sign in to comment.
You can’t perform that action at this time.