Skip to content

Commit 99c5648

Browse files
committedJan 3, 2019
Optimize to take error message
1 parent b89353d commit 99c5648

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed
 

‎.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
node_modules/
2-
package-lock.json
2+
package-lock.json
3+
prueba.js

‎index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@ module.exports = {
1212
return axios.get(url).then(
1313
data => data.data
1414
).
15-
catch( error => console.log(error));
15+
catch( error => error.response.data);
1616
}
1717
}

0 commit comments

Comments
 (0)
Please sign in to comment.