aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/file.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/file.cpp b/src/file.cpp
index 1a8bd08..0e85853 100644
--- a/src/file.cpp
+++ b/src/file.cpp
@@ -9,7 +9,7 @@ Bu::File::File( const char *sName, const char *sFlags )
9 fh = fopen( sName, sFlags ); 9 fh = fopen( sName, sFlags );
10 if( fh == NULL ) 10 if( fh == NULL )
11 { 11 {
12 throw Bu::FileException( errno, strerror(errno) ); 12 throw Bu::FileException( errno, "%s: %s", strerror(errno), sName );
13 } 13 }
14} 14}
15 15
@@ -18,7 +18,7 @@ Bu::File::File( const Bu::FString &sName, const char *sFlags )
18 fh = fopen( sName.getStr(), sFlags ); 18 fh = fopen( sName.getStr(), sFlags );
19 if( fh == NULL ) 19 if( fh == NULL )
20 { 20 {
21 throw Bu::FileException( errno, strerror(errno) ); 21 throw Bu::FileException( errno, "%s: %s", strerror(errno), sName.getStr() );
22 } 22 }
23} 23}
24 24