diff options
| author | ruki <[email protected]> | 2026-01-30 22:59:25 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2026-01-30 22:59:25 +0800 |
| commit | e836941e029a2999a0d904b77df2196ec8f8eac6 (patch) | |
| tree | 04d98e3944a7386c754233f4a0fbf06b2add6494 /core/src/xmake | |
| parent | 6894de1efe19f04301bdbb3068ea746e1b26378b (diff) | |
improve errors
Diffstat (limited to 'core/src/xmake')
| -rw-r--r-- | core/src/xmake/binutils/format.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/core/src/xmake/binutils/format.c b/core/src/xmake/binutils/format.c index 240449f85..1a12d8742 100644 --- a/core/src/xmake/binutils/format.c +++ b/core/src/xmake/binutils/format.c @@ -213,7 +213,7 @@ tb_int_t xm_binutils_format(lua_State *lua) { tb_stream_ref_t istream = tb_stream_init_from_file(binaryfile, TB_FILE_MODE_RO); if (!istream) { lua_pushnil(lua); - lua_pushfstring(lua, "format: open %s failed", binaryfile); + lua_pushfstring(lua, "open %s failed", binaryfile); return 2; } @@ -221,14 +221,14 @@ tb_int_t xm_binutils_format(lua_State *lua) { do { if (!tb_stream_open(istream)) { lua_pushnil(lua); - lua_pushfstring(lua, "format: open %s failed", binaryfile); + lua_pushfstring(lua, "open %s failed", binaryfile); break; } tb_int_t format = xm_binutils_format_detect(istream); if (format < 0) { lua_pushnil(lua); - lua_pushliteral(lua, "format: cannot detect file format"); + lua_pushliteral(lua, "cannot detect file format"); break; } |
