Skip to content

Commit bf058ca

Browse files
committed
Make errors more generic.
1 parent 7093b2f commit bf058ca

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/lib.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -157,8 +157,8 @@ pub struct Api {
157157
#[repr(C)]
158158
#[derive(Debug, Copy, Clone, PartialEq, Eq)]
159159
pub enum Error {
160-
/// The given file path was not found
161-
FileNotFound,
160+
/// The given file/directory path was not found
161+
NotFound,
162162
/// Tried to write to a read-only file
163163
FileReadOnly,
164164
/// Reached the end of the file
@@ -167,8 +167,8 @@ pub enum Error {
167167
Unimplemented,
168168
/// An invalid argument was given to the API
169169
InvalidArg,
170-
/// A bad file handle was given to the API
171-
BadFileHandle,
170+
/// A bad handle was given to the API
171+
BadHandle,
172172
/// An device-specific error occurred. Look at the BIOS source for more details.
173173
DeviceSpecific,
174174
/// The OS does not have enough memory

0 commit comments

Comments
 (0)