Skip to content

Commit 9793df6

Browse files
author
Michael Christopher
committed
Updated readme with correct error handling
1 parent 82d3b2a commit 9793df6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ and pass it as the parameters for a new ZencoderJob object. Execute the script o
8080
// If were here, an error occured
8181
echo "Fail :(\n\n";
8282
echo "Errors:\n";
83-
foreach ($e->errors as $error) echo $error."\n";
83+
foreach ($e->getErrors() as $error) echo $error."\n";
8484
echo "Full exception dump:\n\n";
8585
print_r($e);
8686
}

0 commit comments

Comments
 (0)