Skip to content

Commit

Permalink
added error code to error message
Browse files Browse the repository at this point in the history
  • Loading branch information
mh-rafi committed Feb 14, 2022
1 parent d05d048 commit 8de6768
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion includes/Gumroad.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public function get_resource($resource_url) {
} elseif ( $status_code === 401 ) {
return new \WP_Error('gumroad-unathorized', __('Invalid token!', 'uilib-gumpress'));
} else {
return new \WP_Error('gumroad-error', __('Error while getting data from Gumroad!!', 'uilib-gumpress'));
return new \WP_Error('gumroad-error', __('Error while getting data from Gumroad! Error code '.$status_code, 'uilib-gumpress'));
}
}

Expand Down
9 changes: 8 additions & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,11 @@ to Gumroad.
* added: plugin action link
* fixed: import only published
* added: variation select
* updated: variable product button
* updated: variable product button

### Roadmap
* Out of stok prodcut
* Affiliated products going to external page
* Same product order as Gumroad
* Additional information/ Versions
* Option for overriding the woocommerce product data(Title, Description, etc). So that user can choose which field should be overridden and which not

0 comments on commit 8de6768

Please sign in to comment.