[Fixes #68] Added result code to exception when cannot parse ls