Lines Matching refs:runtime_error
85 my @warning = ( sub {}, \&warning, \&runtime_error );
496 sub runtime_error(@) { subroutine
859 …runtime_error( "Could not find real path for \"$orig_path\"" . ( $message ne "" ? ": $message" : "…
905 runtime_error( "$prefix: it exists, but not a directory." );
913 runtime_error( "$prefix: $@" );
916 runtime_error( "$prefix." );
951 runtime_error( "$prefix: \"$src\" does not exist." );
954 runtime_error( "$prefix: \"$src\" is not a directory." );
961 runtime_error( "$prefix: \"$dst\" already exists." );
964 runtime_error( "$prefix: \"$dst\" is not a directory." );
998 runtime_error( "$prefix: \"$src\" does not exist." );
1001 runtime_error( "$prefix: \"$src\" is not a directory." );
1008 runtime_error( "$prefix: \"$dst\" already exists." );
1011 runtime_error( "$prefix: \"$dst\" is not a directory." );
1053 runtime_error( $prefix, "Cannot stat `$dir': $!" );
1056 runtime_error( $prefix, "It is not a directory." );
1060 runtime_error( $prefix, "Directory is not writable." );
1064 or runtime_error( $prefix, "Cannot make directory writable: $!" );
1066 my $handle = IO::Dir->new( $dir ) or runtime_error( $prefix, "Cannot read directory: $!" );
1068 $handle->close() or runtime_error( $prefix, "Cannot read directory: $!" );
1075 unlink( $path ) or runtime_error( $prefix, "Cannot delete symlink `$path': $!" );
1077 stat( $path ) or runtime_error( $prefix, "Cannot stat `$path': $! " );
1083 … rmdir( $path ) or runtime_error( $prefix, "Cannot delete directory `$path': $!" );
1087 runtime_error( $prefix, "`$path' is neither a file nor a directory." );
1148 runtime_error( "$prefix: it is not a directory." );
1151 rmdir( $dir ) or runtime_error( "$prefix." );
1170 or runtime_error( "Could not chdir to \"$dir\": $!" );
1203 runtime_error( "$prefix: \"$src\" does not exist." );
1206 runtime_error( "$prefix: \"$src\" is not a file." );
1213 runtime_error( "$prefix: \"$dst\" already exists." );
1216 runtime_error( "$prefix: \"$dst\" is not a file." );
1220 File::Copy::copy( $src, $dst ) or runtime_error( "$prefix: $!" );
1225 or runtime_error( "$prefix: cannot get status info for source file." );
1227 or runtime_error( "$prefix: cannot change mode of destination file." );
1244 runtime_error( "$prefix: \"$src\" does not exist." );
1247 runtime_error( "$prefix: \"$src\" is not a file." );
1254 runtime_error( "$prefix: \"$dst\" already exists." );
1257 runtime_error( "$prefix: \"$dst\" is not a file." );
1261 File::Copy::move( $src, $dst ) or runtime_error( "$prefix: $!" );
1277 runtime_error( "Deleting file `$file' failed: $!" );
1381 my $error = \&runtime_error;
1542 or runtime_error( "File \"$name\" could not be opened for output: $!" );
1576 or runtime_error( "File \"$name\" could not be closed after output: $!" );
1636 runtime_error( "Could not create temp file." );
1664 …or runtime_error( "file \"$temp_name\" could not be opened for " . ( $mode eq "<" ? "input" : "out…
1898 runtime_error( $@ );
1904 runtime_error( $@ );
1910 runtime_error( $@ );