From e73f65e11cf9afa079b2e68f7be5ca9bb1d62334 Mon Sep 17 00:00:00 2001 From: "josh.macdonald" Date: Mon, 26 Oct 2009 06:01:00 +0000 Subject: Provide more information about the error. --- xdelta3/xdelta3-main.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'xdelta3') diff --git a/xdelta3/xdelta3-main.h b/xdelta3/xdelta3-main.h index 010b8cb..5df29e2 100644 --- a/xdelta3/xdelta3-main.h +++ b/xdelta3/xdelta3-main.h @@ -2854,7 +2854,7 @@ main_set_source (xd3_stream *stream, xd3_cmd cmd, } else { - strcpy(sizebuf, " not seekable"); + sizebuf[0] = 0; } XPR(NT "source %s winsize %s blksize %u%s\n", @@ -3063,6 +3063,12 @@ main_getblk_func (xd3_stream *stream, { /* Could assert !IS_ENCODE(), this shouldn't happen * because of do_not_lru during encode. */ + if (option_verbose) + { + XPR(NT "copy lags source position by %"Q"u bytes\n", + sfile->source_position - pos); + } + stream->msg = "non-seekable source: copy is too far back (try raising -B)"; return XD3_TOOFARBACK; } -- cgit v1.2.3