// if debug, then save the text-based merged network
if (withDebug()) {
TextProtoNetworkExternalizer textExternalizer =
new TextProtoNetworkExternalizer();
textExternalizer.writeProtoNetwork(pn, s1path);
}
} catch (ProtoNetworkError e) {
stageError(e.getUserFacingMessage());
bail(FAILED_TO_MERGE_PROTO_NETWORKS);
return pn; // Dead code