mirror of
https://github.com/radareorg/radare2.git
synced 2025-01-09 15:00:42 +00:00
Show error when trying to interpret an unexistent file
This commit is contained in:
parent
6aa591029e
commit
b51c282852
@ -1294,7 +1294,10 @@ R_API int r_core_cmd_file(RCore *core, const char *file) {
|
||||
data = r_file_abspath (file);
|
||||
odata = r_file_slurp (data, NULL);
|
||||
free (data);
|
||||
if (!odata) return R_FALSE;
|
||||
if (!odata) {
|
||||
eprintf ("Cannot open '%s'\n", file);
|
||||
return R_FALSE;
|
||||
}
|
||||
nl = strchr (odata, '\n');
|
||||
if (nl) {
|
||||
data = odata;
|
||||
|
Loading…
Reference in New Issue
Block a user