diff options
author | josh.macdonald <jmacd@users.noreply.github.com> | 2009-10-26 06:01:00 +0000 |
---|---|---|
committer | josh.macdonald <jmacd@users.noreply.github.com> | 2009-10-26 06:01:00 +0000 |
commit | e73f65e11cf9afa079b2e68f7be5ca9bb1d62334 (patch) | |
tree | 1f3b439b9fd208b8a4fd512256e2af916c3fe7cc /xdelta3 | |
parent | cb3aea3a7fb33e3034004081c146f2b8d2325a14 (diff) |
Provide more information about the error.
Diffstat (limited to 'xdelta3')
-rw-r--r-- | xdelta3/xdelta3-main.h | 8 |
1 files changed, 7 insertions, 1 deletions
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, | |||
2854 | } | 2854 | } |
2855 | else | 2855 | else |
2856 | { | 2856 | { |
2857 | strcpy(sizebuf, " not seekable"); | 2857 | sizebuf[0] = 0; |
2858 | } | 2858 | } |
2859 | 2859 | ||
2860 | XPR(NT "source %s winsize %s blksize %u%s\n", | 2860 | XPR(NT "source %s winsize %s blksize %u%s\n", |
@@ -3063,6 +3063,12 @@ main_getblk_func (xd3_stream *stream, | |||
3063 | { | 3063 | { |
3064 | /* Could assert !IS_ENCODE(), this shouldn't happen | 3064 | /* Could assert !IS_ENCODE(), this shouldn't happen |
3065 | * because of do_not_lru during encode. */ | 3065 | * because of do_not_lru during encode. */ |
3066 | if (option_verbose) | ||
3067 | { | ||
3068 | XPR(NT "copy lags source position by %"Q"u bytes\n", | ||
3069 | sfile->source_position - pos); | ||
3070 | } | ||
3071 | |||
3066 | stream->msg = "non-seekable source: copy is too far back (try raising -B)"; | 3072 | stream->msg = "non-seekable source: copy is too far back (try raising -B)"; |
3067 | return XD3_TOOFARBACK; | 3073 | return XD3_TOOFARBACK; |
3068 | } | 3074 | } |