Skip to content

Commit 7eab205

Browse files
aebadiradCharles Greer
authored andcommitted
Tweak to make sure error message gets through. Better eval xquery
1 parent 60edc9c commit 7eab205

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

marklogic-data-hub/src/main/java/com/marklogic/hub/impl/DataHubImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -545,7 +545,7 @@ private Map<Integer, String> getServerPortsInUse() {
545545
updatedFlows.addAll(flows);
546546
}
547547

548-
runInDatabase("for $i in cts:uris(\"\", (), cts:and-not-query(cts:collection-query(\"hub-core-module\"), cts:document-query((\"/com.marklogic.hub/config.sjs\", \"/com.marklogic.hub/config.xqy\")))) return xdmp:document-delete($i)", hubConfig.getDbName(DatabaseKind.MODULES));
548+
runInDatabase("cts:uris(\"\", (), cts:and-not-query(cts:collection-query(\"hub-core-module\"), cts:document-query((\"/com.marklogic.hub/config.sjs\", \"/com.marklogic.hub/config.xqy\")))) ! xdmp:document-delete(.)", hubConfig.getDbName(DatabaseKind.MODULES));
549549

550550
if (isHubInstalled) {
551551
// install hub modules into MarkLogic

quick-start/src/main/java/com/marklogic/quickstart/web/CurrentProjectController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ public ResponseEntity<?> updateHub() throws IOException, CantUpgradeException {
211211
return new ResponseEntity<>(HttpStatus.NO_CONTENT);
212212
}
213213
} catch (CantUpgradeException e) {
214-
return new ResponseEntity<>(e.getMessage(), HttpStatus.BAD_REQUEST);
214+
return new ResponseEntity<>(e, HttpStatus.BAD_REQUEST);
215215
}
216216
return new ResponseEntity<>(HttpStatus.BAD_REQUEST);
217217
}

0 commit comments

Comments
 (0)