Fix generic staging error type

* Use "StagingError.generic" instead of only "StagingError"

Signed-off-by: Atul Kshirsagar <atul.kshirsagar@gmail.com>