More conscise chunk error handling

Signed-off-by: katlogic <kat@lua.cz>