1. A method comprising: retrieving, from a first storage area, hardware initialization code that is adapted to initialize a device, wherein the hardware initialization code also includes an error action placeholder, the error action placeholder corresponding to one or more actions that are performed in response to detecting a failure during the initialization of the device; retrieving error action information from a second storage area, wherein the error action information describes one or more of the actions that are performed in response to detecting the failure during the initialization of the device; converting the error action information to one or more macros, wherein each of the one or more macros includes one or more lines of code; matching the error action placeholder to one of the macros; and replacing the error action placeholder in the hardware initialization code with the lines of code corresponding to the macro that matched the error action placeholder.