Skip to content
Projects
Groups
Snippets
Help
Sign in / Register
Toggle navigation
Minds Mobile
Project overview
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
193
Merge Requests
13
Security & Compliance
Packages
Wiki
Snippets
Members
Collapse sidebar
Close sidebar
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Minds
Minds Mobile
Commits
c96f46a5
Commit
c96f46a5
authored
3 minutes ago
by
Juan Manuel Solaro
Browse files
Options
Download
(fix) also log status an status text
parent
e48befea
log-url-for-json-parse-error
1 merge request
!447
Log message to sentry when json parse error occur
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
src/common/services/api.service.js
View file @
c96f46a5
...
...
@@ -36,7 +36,7 @@ class ApiService {
try
{
return
await
response
.
json
();
}
catch
(
error
)
{
Sentry
.
captureMessage
(
`ISSUE #1572 URL:
${
response
.
url
}
`
);
Sentry
.
captureMessage
(
`ISSUE #1572 URL:
${
response
.
url
}
, STATUS:
${
response
.
status
}
STATUSTEXT:
${
response
.
statusText
}
`
);
throw
error
;
}
}
...
...
This diff is collapsed.
Please
register
or
sign in
to comment