Skip to content

Commit

Permalink
Merge pull request #11 from onedesign/feature/better-logging-and-docs
Browse files Browse the repository at this point in the history
Logging and docs
  • Loading branch information
brianjhanson authored Apr 19, 2017
2 parents d303110 + 1d8126c commit 79eb985
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ The easiest way to add subscribers is by posting a form with their data. This fo
<input type="hidden" name="action" value="oneCampaignMonitor/subscribers/add" />
<input type="hidden" name="redirect" value="/" />
<!-- required fields -->
<!-- required fields ** REPLACE "myListId" WITH YOUR LIST ID ** -->
<input type="hidden" name="listId" value="myListId" />
<label for="email">Email (required)</label>
<input type="text" id="email" name="email" />
Expand Down
1 change: 1 addition & 0 deletions controllers/OneCampaignMonitor_SubscribersController.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ public function actionAdd() {
try {
craft()->oneCampaignMonitor_subscribers->add($listId, $email, $name, $customFields, $resubscribe);
} catch (Exception $e) {
OneCampaignMonitorPlugin::log($e->getMessage(), LogLevel::Error);
$error = $e->getMessage();
}

Expand Down

0 comments on commit 79eb985

Please sign in to comment.