Quick update for consistency with other clients.
Project: http://git-wip-us.apache.org/repos/asf/airavata/repo Commit: http://git-wip-us.apache.org/repos/asf/airavata/commit/0ff24152 Tree: http://git-wip-us.apache.org/repos/asf/airavata/tree/0ff24152 Diff: http://git-wip-us.apache.org/repos/asf/airavata/diff/0ff24152 Branch: refs/heads/master Commit: 0ff241524aee09b36c2bb68bced56de646522e28 Parents: 126ee28 Author: David Reagan <[email protected]> Authored: Thu May 22 19:29:23 2014 -0400 Committer: David Reagan <[email protected]> Committed: Thu May 22 19:29:23 2014 -0400 ---------------------------------------------------------------------- client-samples/createExperiment.php | 2 +- client-samples/getExperimentOutputs.php | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/airavata/blob/0ff24152/client-samples/createExperiment.php ---------------------------------------------------------------------- diff --git a/client-samples/createExperiment.php b/client-samples/createExperiment.php index 12b9513..2178672 100755 --- a/client-samples/createExperiment.php +++ b/client-samples/createExperiment.php @@ -134,7 +134,7 @@ try { var_dump($experiment); echo "Experiment $expId created! \n "; - } + } else { echo "Failed to create experiment. \n"; http://git-wip-us.apache.org/repos/asf/airavata/blob/0ff24152/client-samples/getExperimentOutputs.php ---------------------------------------------------------------------- diff --git a/client-samples/getExperimentOutputs.php b/client-samples/getExperimentOutputs.php index 6524d21..d783503 100644 --- a/client-samples/getExperimentOutputs.php +++ b/client-samples/getExperimentOutputs.php @@ -49,8 +49,9 @@ $airavataclient = new AiravataClient($protocol); -if (count($argv) < 2) { - exit("Please provide an experimentID. \n"); +if ($argc != 2) +{ + exit("php getExperimentOutputs.php <experiment_id> \n"); } $expId = $argv[1];
