diff --git a/pkg/users/account-create-dialog.js b/pkg/users/account-create-dialog.js index 175a82f9712e..ac06fc04d53a 100644 --- a/pkg/users/account-create-dialog.js +++ b/pkg/users/account-create-dialog.js @@ -286,7 +286,6 @@ export function account_create_dialog(accounts, min_uid, max_uid, shells) { function get_defaults() { return cockpit.spawn(["useradd", "-D"], { superuser: "require", err: "message" }) - .catch(e => console.warn("Could not get useradd defaults: ", e.message)) .then(defaults => { let shell = ""; let base_home_dir = null; @@ -300,6 +299,7 @@ export function account_create_dialog(accounts, min_uid, max_uid, shells) { change("shell", shell); change("base_home_dir", base_home_dir); }) + .catch(e => console.warn("Could not get useradd defaults: ", e.message)) .finally(() => change("dialogLoading", false)); }