summaryrefslogtreecommitdiff
path: root/rtl-obj.c
diff options
context:
space:
mode:
Diffstat (limited to 'rtl-obj.c')
-rw-r--r--rtl-obj.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/rtl-obj.c b/rtl-obj.c
index df7ec8b..ddf4a0b 100644
--- a/rtl-obj.c
+++ b/rtl-obj.c
@@ -367,7 +367,11 @@ rtems_rtl_obj_find_file (rtems_rtl_obj_t* obj, const char* name)
rtl = rtems_rtl_lock ();
if (!rtems_rtl_find_file (pname, rtl->paths, &obj->fname, &obj->fsize))
+ {
+ rtems_rtl_set_error (ENOENT, "file not found");
+ rtems_rtl_unlock ();
return false;
+ }
rtems_rtl_unlock ();