From 418343b7e20ef407fa61ac9cb02668707f41ca60 Mon Sep 17 00:00:00 2001 From: "Joachim Wuttke (l)" <j.wuttke@fz-juelich.de> Date: Sat, 11 Mar 2017 17:57:17 +0100 Subject: [PATCH] minor corr --- pub/lib/commands.cpp | 2 +- pub/lib/import.cpp | 2 +- pub/plot/dualplot.cpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pub/lib/commands.cpp b/pub/lib/commands.cpp index 0d00c597..0ee6f321 100644 --- a/pub/lib/commands.cpp +++ b/pub/lib/commands.cpp @@ -307,7 +307,7 @@ bool frida_command(string cmd) " gd graphic dialog (feed commands to gnuplot)\n" "Save for print:\n" " gp plot to complete .ps file\n" - " gf plot to short .psX file\n" + " gf plot to short .psa file\n" " gfa append plot to existing .ps or .psa file\n" "Change window:\n" " gw list of plot windows\n" diff --git a/pub/lib/import.cpp b/pub/lib/import.cpp index 03af1968..5f324de8 100644 --- a/pub/lib/import.cpp +++ b/pub/lib/import.cpp @@ -183,7 +183,7 @@ void NImport::read_tab(string qualif) if (dat.size() != (with_d ? 3 : 2)) { throw "line " + S(n_in) + " (line " + S(nline) + " in block " + S(nblock) + ") [" + lin + "] contains " + S(dat.size()) + " values; " - + "at present, exactly " + S(with_d ? 3 : 2) + " are required"; + + " exactly " + S(with_d ? 3 : 2) + " are required"; } if (with_d) s->push_xy(dat[0], dat[1]); diff --git a/pub/plot/dualplot.cpp b/pub/plot/dualplot.cpp index 46c0feb7..f1d144ae 100644 --- a/pub/plot/dualplot.cpp +++ b/pub/plot/dualplot.cpp @@ -341,7 +341,7 @@ void CPlot::write_postscript( if (!triv::file_exists(fname)) throw "BUG: after copying headers, graphic output file " + fname + " still doesn't exist"; if (!(pssav = fopen(fname.c_str(), mode=="append" ? "a" : "w"))) - throw "cannot append contents to file " + fname; + throw "BUG: cannot open file " + fname; for (string lin : ps_accu) { // fprintf does not work here because output line may contain "%" fwrite(lin.c_str(), 1, lin.size(), pssav); -- GitLab