Fixed a small issue in core XM125 code that caused a file write error message to not be displayed when it should be.