Skip to content
This repository has been archived by the owner on Apr 17, 2023. It is now read-only.

Commit

Permalink
Merge pull request #293 from feedhenry/IMP_COR_MSG
Browse files Browse the repository at this point in the history
Add message when has error to initializer
  • Loading branch information
camilamacedo86 authored Nov 30, 2018
2 parents 79fa671 + e434159 commit 4a90b8a
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog - FeedHenry Javascript SDK

## 3.0.12 - 2018-11-30
### Fix
- Add default result for init requests across domains when the result is not successful which is expected when the connection tag is disable.

## 3.0.11 - 2018-08-29
### Fix
- Unable to build client app regards issue introduce in the changes made in the version 3.0.3.
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "fh-js-sdk",
"version": "3.0.11",
"version": "3.0.12",
"description": "feedhenry js sdk",
"main": "dist/feedhenry.js",
"types": "./fh-js-sdk.d.ts",
Expand Down
4 changes: 4 additions & 0 deletions src/modules/initializer.js
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,10 @@ var loadCloudProps = function(app_props, callback) {
if (req && req.status === 400) {
logger.error(req.responseText);
} else {
if ( !req && !statusText && !error ) {
statusText = "Connection tag may be disabled";
error = "No cached host found. Init failed.";
}
logger.error("No cached host found. Init failed.");
}
handleError(function(msg, err) {
Expand Down

0 comments on commit 4a90b8a

Please sign in to comment.