ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* texmfstart fails silently on incorrect input
@ 2006-06-04 17:28 Aditya Mahajan
  2006-06-05  0:50 ` "Guðmundur J. Kristjánsson"
  2006-06-05 16:11 ` Hans Hagen
  0 siblings, 2 replies; 7+ messages in thread
From: Aditya Mahajan @ 2006-06-04 17:28 UTC (permalink / raw)


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.


Aditya

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2006-06-05 17:21 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-06-04 17:28 texmfstart fails silently on incorrect input Aditya Mahajan
2006-06-05  0:50 ` "Guðmundur J. Kristjánsson"
2006-06-05  2:20   ` Aditya Mahajan
2006-06-05 16:01     ` Hans Hagen
2006-06-05 16:11 ` Hans Hagen
2006-06-05 16:51   ` Aditya Mahajan
2006-06-05 17:21     ` Hans Hagen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).