diff options
Diffstat (limited to 'ubi-utils/src/ubiupdatevol.c')
-rw-r--r-- | ubi-utils/src/ubiupdatevol.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ubi-utils/src/ubiupdatevol.c b/ubi-utils/src/ubiupdatevol.c index b160461..df424d2 100644 --- a/ubi-utils/src/ubiupdatevol.c +++ b/ubi-utils/src/ubiupdatevol.c @@ -331,7 +331,10 @@ int main(int argc, char * const argv[]) args.node); goto out_libubi; } else if (err < 0) { - errmsg("\"%s\" is not an UBI volume node", args.node); + if (errno == ENODEV) + errmsg("\"%s\" is not an UBI volume node", args.node); + else + sys_errmsg("error while probing \"%s\"", args.node); goto out_libubi; } |