Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dlib
Commits
959ac1fe
Commit
959ac1fe
authored
May 28, 2011
by
Davis King
Browse files
Fixed incorrect exception being thrown.
parent
275410af
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
dlib/image_loader/image_loader.h
dlib/image_loader/image_loader.h
+2
-2
No files found.
dlib/image_loader/image_loader.h
View file @
959ac1fe
...
@@ -769,7 +769,7 @@ namespace dlib
...
@@ -769,7 +769,7 @@ namespace dlib
{
{
std
::
ifstream
fin
(
file_name
.
c_str
(),
std
::
ios
::
binary
);
std
::
ifstream
fin
(
file_name
.
c_str
(),
std
::
ios
::
binary
);
if
(
!
fin
)
if
(
!
fin
)
throw
image_
save
_error
(
"Unable to open "
+
file_name
+
" for reading."
);
throw
image_
load
_error
(
"Unable to open "
+
file_name
+
" for reading."
);
load_bmp
(
image
,
fin
);
load_bmp
(
image
,
fin
);
}
}
...
@@ -783,7 +783,7 @@ namespace dlib
...
@@ -783,7 +783,7 @@ namespace dlib
{
{
std
::
ifstream
fin
(
file_name
.
c_str
(),
std
::
ios
::
binary
);
std
::
ifstream
fin
(
file_name
.
c_str
(),
std
::
ios
::
binary
);
if
(
!
fin
)
if
(
!
fin
)
throw
image_
save
_error
(
"Unable to open "
+
file_name
+
" for reading."
);
throw
image_
load
_error
(
"Unable to open "
+
file_name
+
" for reading."
);
load_dng
(
image
,
fin
);
load_dng
(
image
,
fin
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment