Skip to content

Commit

Permalink
api_fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Mirror45 committed Feb 1, 2024
1 parent 9da8304 commit af0b464
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const sendData = (body, onSuccess, onError) => {
if (response.ok) {
onSuccess();
} else {
throw new Error('Ошибка HTTP: ' + response.status);
throw new Error(`Ошибка HTTP: ${response.status}`);
}
})

Expand Down

0 comments on commit af0b464

Please sign in to comment.