Problem with using YAML for configuration files

E

Eli Bendersky

Hello,

I'm using YAML for configuration files in my current Ruby application,
and the yaml.rb module to load them (YAML::load is about all I use).

One problem I ran into is error reporting, on the semantic level (not
YAML errors). Say a user makes an error in some configuration item,
and I want to emit a useful error message that will guide him to the
problem. This isn't easy at all with YAML, since after YAML::load all
I have is a hash table, completely detached from the actual
configuration file. And I'd really want to let the user know, for
instance, on which line the error occurred.

This is probably a general YAML problem rather than a Ruby problem,
but I'd still like to ask here whether anyone ever encountered this ?
What are the solutions, in your opinion ?

Thanks in advance
Eli
 
A

alexander

dear sender,
i´m out of the office until may 29th.
your email will not be forwarded.
for urgent stuff please contact (e-mail address removed)
kind regards,
alexander
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,226
Members
46,815
Latest member
treekmostly22

Latest Threads

Top