mirror of
https://github.com/floci-io/floci-cli.git
synced 2026-11-22 21:50:47 -05:00
Merge remote-tracking branch 'origin/main' into feat/reset
Reset asks the exception for the HTTP status, as the snapshot commands now do. Signed-off-by: Hector Ventura <hectorvent@gmail.com>
This commit is contained in:
15 files changed
+330
-31
No files matched your search
@@ -140,7 +140,7 @@ public class ResetCommand implements Callable<Integer> {
|
||||
try {
|
||||
new FlociHttpClient(effectiveEndpoint, profile).resetState();
|
||||
} catch (FlociException e) {
|
||||
if (e.getMessage().contains("HTTP 404") || e.getMessage().contains("HTTP 501")) {
|
||||
if (e.endpointMissing()) {
|
||||
printer.error("Resetting state is not available on this " + profile.displayName() + " server version.\n"
|
||||
+ "Restart it without --persist for a clean state, or track progress: " + profile.serverRepo() + "/issues");
|
||||
} else {
|
||||
|
||||
Reference in new issue
Block a user