fix bug, (wrong) error thrown when no manifests found
enhance error messaging, write stacktrace to file instead