Propagate Last Error to the browser

Send back to the browser also the value
of the last error, that is internally stored.

Signed-off-by: Stefano Babic <sbabic@denx.de>