Skip to content

Commit 3745a5e

Browse files
author
ehennum
committed
throw error if service directory has no api / module pairs #974
1 parent 688db88 commit 3745a5e

File tree

1 file changed

+6
-0
lines changed
  • marklogic-development-tools/src/main/kotlin/com/marklogic/client/tools/proxy

1 file changed

+6
-0
lines changed

marklogic-development-tools/src/main/kotlin/com/marklogic/client/tools/proxy/Generator.kt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,12 @@ class Generator {
289289
"""))
290290
}
291291

292+
if (funcdefs.size == 0) {
293+
throw IllegalArgumentException(
294+
"no proxy declaration with endpoint module found in ${endpointDirectory}"
295+
)
296+
}
297+
292298
val funcDecl = mutableListOf<String>()
293299
val funcDepend = mutableSetOf<String>()
294300
val funcSrc = funcdefs.map{(root, funcdef) ->

0 commit comments

Comments
 (0)