Skip to content

Commit b527b18

Browse files
committed
FIX: import/check with an invalid checksum was failing with a wrong error (Oldes/Rebol-issues#1686)
1 parent 2660ab1 commit b527b18

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mezz/sys-load.reb

+1-1
Original file line numberDiff line numberDiff line change
@@ -546,12 +546,12 @@ load-module: function [
546546
not hdr [
547547
; Only happens for string, binary or non-extension file/url source
548548
set [hdr: code: end:] load-header/required data
549-
unless tail? end [code: copy/part code end]
550549
case [
551550
word? hdr [cause-error 'syntax hdr source]
552551
import none ; /import overrides 'delay option
553552
not delay [delay: true? find hdr/options 'delay]
554553
]
554+
unless tail? end [code: copy/part code end]
555555
if hdr/checksum [modsum: copy hdr/checksum]
556556
]
557557
no-share [hdr/options: append any [hdr/options make block! 1] 'isolate]

0 commit comments

Comments
 (0)