Aditya Mahajan wrote:
On Mon, 5 Jun 2006, Hans Hagen wrote:
Aditya Mahajan wrote:
Hi,
when I try
texmfstart whatever
nothing happens. Shouldn't a warning or an error be given to say that texmfstart could not find 'whatever'. This will make it easier to detect typos while trying out commands by hand.
I do get such a message when using texmfstart --verbose whatever, but I think that such a behaviour should be default.
Hans, is it reasonable to define a method report_error(str) in
class KpseRemote def report_error(str) $stderr.puts(str) end end
and modify line 2110 of texmfstart.rb to
def run(fullname) if ! fullname || fullname.empty? then %%% report("the file '#{$filename}' is not found") report_error("the file '#{$filename}' is not found") .....
Maybe there are other places also where an error report will be useful.
there is the non-verbose checking
def output(str) $stdout.puts(str) end
so we can use
output("the file '#{$filename}' is not found")
this will be fine.
(i dislike stderr -)
Any particular reason?
mostly that it takes more work to collect both when piping (to a log file) and so, either i want to see messages or not and verbose can control that Hans ----------------------------------------------------------------- Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl -----------------------------------------------------------------