There is call:
```
encode_preR13_section (SECTION_BLOCK, dat, dwg);
```
But in ```encode_preR13_section()``` is the possibility of returned error.

I am proposing to change to:
```
error |= encode_preR13_section (SECTION_BLOCK, dat, dwg);
```
in dwg_encode are not properly handled errors
This is a GitHub Issue
repo:libredwg
owner:LibreDWG
Title : in dwg_encode are not properly handled errors
Issue date:

--- start body ---
There is call:
```
encode_preR13_section (SECTION_BLOCK, dat, dwg);
```
But in ```encode_preR13_section()``` is the possibility of returned error.

I am proposing to change to:
```
error |= encode_preR13_section (SECTION_BLOCK, dat, dwg);
```
--- end body ---

The issue describes a potential oversight in error handling within the `dwg_encode` function, specifically regarding the `encode_preR13_section` call. While this could lead to improper error reporting, it does not indicate a security vulnerability, but rather a coding improvement suggestion.