We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 546b598 commit ab676c1Copy full SHA for ab676c1
plugins/logger/api/api.js
@@ -108,12 +108,24 @@ var plugin = {},
108
if(types["crash"] && typeof types["crash"] == "object"){
109
types["crash"] = JSON.stringify(types["crash"]);
110
}
111
+ var res;
112
try{
- JSON.parse(types["crash"]);
113
+ res = JSON.parse(types["crash"]);
114
115
catch(ex){
116
problems.push("Could not parse crash");
117
118
+ if(res){
119
+ if(!res._error){
120
+ problems.push("Crash missing _error property");
121
+ }
122
+ if(!res._app_version){
123
+ problems.push("Crash missing _app_version property");
124
125
+ if(!res._os && params.app.type !== "web"){
126
+ problems.push("Crash missing _os property");
127
128
129
130
131
if(params.app.type !== "web" && params.qstring.sdk_name === "javascript_native_web"){
0 commit comments