Skip to content

fix: Fixing errors in imports and error calls - #21

Open
danisaev wants to merge 1 commit into
Piletskii-Oleg:mainfrom
danisaev:main
Open

fix: Fixing errors in imports and error calls#21
danisaev wants to merge 1 commit into
Piletskii-Oleg:mainfrom
danisaev:main

Conversation

@danisaev

Copy link
Copy Markdown
  • Changed OutOfMemory to InvalidInput due to task
  • Changed std::io::ErrorKind to std::io

- Changed OutOfMemory to InvalidInput due to task
- Changed std::io::ErrorKind to std::io
Comment thread src/system/database.rs
if self.size + value_size > self.max_size {
let msg = "The container is too full for the desired data";
return Err(io::Error::new(io::ErrorKind::OutOfMemory, msg));
return Err(io::Error::new(io::ErrorKind::InvalidInput, msg));

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Как будто не лучший вид ошибки, все таки ввод то у нас полностьстью валидный, ошибка у нас из за заполнености БД, тут скорее подойдет std::io::other может

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Согласно таске необходимо было заменить OutOfMemory на InvalidInput, сделано согласно ТЗ

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Оки, я баклан, не прочитал твое ТЗ =) Извини

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants