Skip to content

Commit

Permalink
Fixed spelling mistake for getMessage
Browse files Browse the repository at this point in the history
  • Loading branch information
maab16 committed May 3, 2020
1 parent 0757fa1 commit 2ec1989
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions src/Traits/WooCommerceTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public function all($endpoint = '', $options = [])

return $this->client->get($endpoint, $options);
} catch (\Exception $e) {
throw new \Exception($e->getMessages(), 1);
throw new \Exception($e->getMessage(), 1);
}
}

Expand All @@ -40,7 +40,7 @@ public function find($endpoint = '', $options = [])

return $this->client->get($endpoint, $options);
} catch (\Exception $e) {
throw new \Exception($e->getMessages(), 1);
throw new \Exception($e->getMessage(), 1);
}
}

Expand All @@ -60,7 +60,7 @@ public function create($endpoint, $data)

return $this->client->post($endpoint, $data);
} catch (\Exception $e) {
throw new \Exception($e->getMessages(), 1);
throw new \Exception($e->getMessage(), 1);
}
}

Expand All @@ -80,7 +80,7 @@ public function update($endpoint, $data)

return $this->client->put($endpoint, $data);
} catch (\Exception $e) {
throw new \Exception($e->getMessages(), 1);
throw new \Exception($e->getMessage(), 1);
}
}

Expand All @@ -100,7 +100,7 @@ public function delete($endpoint, $options = [])

return $this->client->delete($endpoint, $options);
} catch (\Exception $e) {
throw new \Exception($e->getMessages(), 1);
throw new \Exception($e->getMessage(), 1);
}
}

Expand All @@ -114,7 +114,7 @@ public function getRequest()
try {
return $this->client->http->getRequest();
} catch (\Exception $e) {
throw new \Exception($e->getMessages(), 1);
throw new \Exception($e->getMessage(), 1);
}
}

Expand All @@ -128,7 +128,7 @@ public function getResponse()
try {
return $this->client->http->getResponse();
} catch (\Exception $e) {
throw new \Exception($e->getMessages(), 1);
throw new \Exception($e->getMessage(), 1);
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/WooCommerceApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public function __construct()
]
);
} catch (\Exception $e) {
throw new \Exception($e->getMessages(), 1);
throw new \Exception($e->getMessage(), 1);
}
}
}

0 comments on commit 2ec1989

Please sign in to comment.