Uses direshell to report errors. Fixes compilation warning.