Skip to content

Commit

Permalink
rss parse error fix
Browse files Browse the repository at this point in the history
  • Loading branch information
HelgiMagic committed Aug 16, 2023
1 parent e3b06f6 commit 2f76ab5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,8 @@ const runApp = () => {
})
.catch((err) => {
if (isAxiosError(err)) watchedState.form.error = 'networkError';
if (err.isParseError) watchedState.form.error = err.message;
if (err.name === 'ValidationError') watchedState.form.error = err.message;
else if (err.isParseError === true) watchedState.form.error = err.message;
else if (err.name === 'ValidationError') watchedState.form.error = err.message;
else watchedState.form.error = 'somethingWrong';

watchedState.form.status = 'invalid';
Expand Down
3 changes: 1 addition & 2 deletions src/locales/ru.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ export default {
submitButton: 'Добавить',
rssLink: 'Cсылка RSS',
required: 'Не введено значение',
RSSNotFound: 'Ресурс не содержит валидный RSS',
RSSParseError: 'Ошибка обработки RSS',
RSSParseError: 'Ресурс не содержит валидный RSS',
somethingWrong: 'Что-то пошло не так',
successfullyUploaded: 'RSS успешно загружен',
networkError: 'Ошибка сети',
Expand Down

0 comments on commit 2f76ab5

Please sign in to comment.