- fixed check for parted errors (see bnc#886005)
- coding style