[PATCH] bootstd: Tidy up reporting of errors