SchemaSourceException should carry SourceIdentifier
[yangtools.git] / yang / yang-repo-fs / src / main / java / org / opendaylight / yangtools / yang / model / repo / fs / FilesystemSchemaSourceCache.java
index fe1509fea81f5c45ccd4a1b607b759dcef477988..1e5a56ad9002a1a3d4967eff809120861a96b6df 100644 (file)
@@ -113,7 +113,7 @@ public final class FilesystemSchemaSourceCache<T extends SourceRepresentation> e
         }
 
         LOG.debug("Source {} not found in cache as {}", sourceIdentifier, file);
-        return immediateFailedFluentFuture(new MissingSchemaSourceException("Source not found", sourceIdentifier));
+        return immediateFailedFluentFuture(new MissingSchemaSourceException(sourceIdentifier, "Source not found"));
     }
 
     @Override