Skip to content

Commit d440841

Browse files
authored
fixes potential fatal error in asset sample (GoogleCloudPlatform#808)
1 parent f367769 commit d440841

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

asset/src/export_assets.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,8 @@ function export_assets($projectId, $dumpFilePath)
4343
if ($resp->operationSucceeded()) {
4444
print('The result is dumped to $dumpFilePath successfully.' . PHP_EOL);
4545
} else {
46-
$error = $operationResponse->getError();
46+
$error = $resp->getError();
47+
printf('There was an error: "%s".' . PHP_EOL, $error->getMessage());
4748
// handleError($error)
4849
}
4950
}

0 commit comments

Comments
 (0)