[BUGFIX] Get folder’s identifier for exception message