diff --git a/flang/runtime/edit-output.cpp b/flang/runtime/edit-output.cpp index ebf2917acffb4..46d3752262587 100644 --- a/flang/runtime/edit-output.cpp +++ b/flang/runtime/edit-output.cpp @@ -57,7 +57,7 @@ bool EditIntegerOutput(IoStatementState &io, const DataEdit &edit, return EditCharacterOutput( io, edit, reinterpret_cast(&n), sizeof n); default: - io.GetIoErrorHandler().Crash( + io.GetIoErrorHandler().SignalError(IostatErrorInFormat, "Data edit descriptor '%c' may not be used with an INTEGER data item", edit.descriptor); return false;