File tree Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Expand file tree Collapse file tree 1 file changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -108,12 +108,24 @@ var plugin = {},
108
108
if ( types [ "crash" ] && typeof types [ "crash" ] == "object" ) {
109
109
types [ "crash" ] = JSON . stringify ( types [ "crash" ] ) ;
110
110
}
111
+ var res ;
111
112
try {
112
- JSON . parse ( types [ "crash" ] ) ;
113
+ res = JSON . parse ( types [ "crash" ] ) ;
113
114
}
114
115
catch ( ex ) {
115
116
problems . push ( "Could not parse crash" ) ;
116
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
+ }
117
129
}
118
130
119
131
if ( params . app . type !== "web" && params . qstring . sdk_name === "javascript_native_web" ) {
You can’t perform that action at this time.
0 commit comments