Changeset 135 for trunk/lua/cli.lua
- Timestamp:
- 02/05/2012 05:36:52 AM (16 months ago)
- File:
-
- 1 edited
-
trunk/lua/cli.lua (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/lua/cli.lua
r134 r135 228 228 return false,msg 229 229 end 230 local cstatus 230 231 local t0=ustime.new() 231 status,msg = self.names[cmd](args) 232 cstatus,status,msg = xpcall( 233 function() 234 return self.names[cmd](args) 235 end, 236 util.err_traceback) 232 237 if cli.showtime then 233 238 printf("time %.4f\n",ustime.diff(t0)/1000000) 239 end 240 if not cstatus then 241 return false,status 234 242 end 235 243 if not status and not msg then … … 316 324 local f,r = loadstring(args) 317 325 if f then 318 r={ pcall(f)};326 r={xpcall(f,util.err_traceback)} 319 327 if not r[1] then 320 328 return false, string.format("call failed:%s\n",r[2])
Note: See TracChangeset
for help on using the changeset viewer.