Skip to content

Commit

Permalink
Improved error data for better debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
Caio Costa committed Mar 3, 2016
1 parent f6a97b2 commit 71fd06b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Common/SdkClient.php
Expand Up @@ -303,7 +303,7 @@ public function createCommandException(CommandTransaction $transaction)
$exceptionClass = $this->commandException;
return new $exceptionClass(
sprintf(
'Error executing %s::%s() on "%s"; %s',
'Error executing %s::%s() on "%s"; %s' . $transaction->exception->getTraceAsString(),
get_class($this),
lcfirst($transaction->command->getName()),
$url,
Expand Down

6 comments on commit 71fd06b

@danielcosta
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oi...?? Concatenando string dentro do sprintf()!?!?

ehehehe...

@alexandre-xavier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Serto

@viniciusgava
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no god please

@arthurprogramming
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

giphy

@omangi
Copy link
Contributor

@omangi omangi commented on 71fd06b Mar 8, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

giphy

@lira
Copy link

@lira lira commented on 71fd06b Mar 8, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.