mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-07-02 02:00:35 +08:00
dataman: improve error reporting
This commit is contained in:
@@ -637,7 +637,7 @@ _file_read(dm_item_t item, unsigned index, void *buf, size_t count)
|
||||
|
||||
/* Check for read error */
|
||||
if (len < 0) {
|
||||
return -1;
|
||||
return -errno;
|
||||
}
|
||||
|
||||
/* A zero length entry is a empty entry */
|
||||
|
||||
Reference in New Issue
Block a user