Skip to content

Commit

Permalink
Merge branch 'feature/profile-error' into 'develop'
Browse files Browse the repository at this point in the history
Better error display from API

See merge request hypha/hypha-dao-client!9
  • Loading branch information
gregory-latinier committed Dec 9, 2019
2 parents 6122907 + f697b43 commit 19cc960
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
11 changes: 8 additions & 3 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
APP_NAME='"Hypha DAO"'
NETWORK_HOST='"api.eos.miami"'

NETWORK_HOST='"test.telos.kitchen"'
NETWORK_PROTOCOL='"https"'
NETWORK_PORT='443'

SMARTCONTRACT='"hyphadaomain"'
TRAILCONTRACT='"eosio.trail"'

HYPHA_SERVICES_URL='"https://4qqy3aqt11.execute-api.us-east-1.amazonaws.com/dev"'
HYPHA_SERVICES_API_KEY='"YVKVSBlQ5J6Mtcv4GI10c8Ssx16GTArlaE6QxLPR"'
REGISTER_API_URL='"https://api-dev.telos.net"'
REGISTER_API_KEY='"BQoDqqyTpG1zriwiwwBZ62nZnVcCI9KQ1j1qUSJc"'

ACCOUNT_API_URL='"https://opqeierg9e.execute-api.us-east-1.amazonaws.com/dev/v1/accounts"'
ACCOUNT_API_KEY='"BQoDqqyTpG1zriwiwwBZ62nZnVcCI9KQ1j1qUSJc"'

BLOCKCHAIN_EXPLORER='"https://telos-test.bloks.io"'
5 changes: 4 additions & 1 deletion src/boot/axios.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@ export const registerApi = axios.create({
}
})

registerApi.interceptors.response.use(response => response.data || {})
registerApi.interceptors.response.use(
response => response.data || {},
error => throw new Error(error.response.data.message || null)
)

export const accountApi = axios.create({
baseURL: process.env.ACCOUNT_API_URL,
Expand Down

0 comments on commit 19cc960

Please sign in to comment.