Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Overly cryptic error message when fsarchiver command line parser fails on "id=0, dest=/dev/sda2" : blank is treated as EOL #152

Open
tebokial opened this issue Oct 24, 2024 · 0 comments

Comments

@tebokial
Copy link

I spent a day or two pondering what was wrong with the following:

sudo fsarchiver -v -d -j 4 restfs /media/WinLocal/wattos_root_20241008.fsa id=0, dest=/dev/sda2
Creating logfile in /var/log/fsarchiver_2024-10-21_21-07-16_3372.log
Running fsarchiver version=[0.8.7], fileformat=[FsArCh_002]
oper_restore.c#147,convert_argv_to_strdicos(): cannot find "dest=" key in "id=0,"

After several days (and browsing the source code) the problem finally dawned on me: the blank character separating the id=0 and the dest= argument is treated as EOL by your parser. Nowhere is this mentioned in the guide ... even if all your examples abide by your implicit rule. Please mention this logic of your parser explicitly in the guide, and improve the error message ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant