Commit 9aa63e0c authored by Petr Rockai's avatar Petr Rockai
Browse files

bricks: Fix the error message when unique_fd::open fails.

parent af20c5fd
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -65,12 +65,12 @@ namespace brq
        }

        template< typename... args_t >
        static unique_fd open( args_t... args )
        static unique_fd open( const char *path, args_t... args )
        {
            int raw = ::open( args... );
            int raw = ::open( path, args... );

            if ( raw < 0 )
                raise_sys() << "error opening file" << brq::format( args... );
                raise_sys() << "error opening file " << path;
            else
                return from_raw( raw );