{"record":{"id":"7dac58b6b31a90db","repo":"wasmerio/wasmer","slug":"stopping-the-flow-as-the-user-is-not-logged-in","errorCode":null,"errorMessage":"Stopping the flow as the user is not logged in.","messagePattern":"Stopping the flow as the user is not logged in\\.","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"lib/cli/src/commands/app/util.rs","lineNumber":336,"sourceCode":"                \"WARN\".yellow().bold()\n            );\n\n            if Confirm::with_theme(&theme)\n                .with_prompt(\"Do you want to login now?\")\n                .interact()?\n            {\n                Login {\n                    no_browser: false,\n                    wasmer_dir: env.dir().to_path_buf(),\n                    cache_dir: env.cache_dir().to_path_buf(),\n                    token: None,\n                    registry: env.registry.clone(),\n                }\n                .run_async()\n                .await?;\n                // self.api = ApiOpts::default();\n            } else {\n                anyhow::bail!(\"Stopping the flow as the user is not logged in.\")\n            }\n        } else {\n            let bin_name = match std::env::args().next() {\n                Some(n) => n,\n                None => String::from(\"wasmer\"),\n            };\n            eprintln!(\n                \"You are not logged in. Use the `--token` flag or log in (use `{bin_name} login`) to {msg}.\"\n            );\n\n            anyhow::bail!(\"Stopping execution as the user is not logged in.\")\n        }\n    }\n\n    env.client()\n}\n\npub fn get_app_config_from_dir_opt(","sourceCodeStart":318,"sourceCodeEnd":354,"githubUrl":"https://github.com/wasmerio/wasmer/blob/8c4b9ee9d33fb2068863fbb3d328683e7e6ff7f5/lib/cli/src/commands/app/util.rs#L318-L354","documentation":"Error \"Stopping the flow as the user is not logged in.\" thrown in wasmerio/wasmer.","triggerScenarios":"Thrown at lib/cli/src/commands/app/util.rs:336 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"8c4b9ee9d33fb2068863fbb3d328683e7e6ff7f5","analyzedAt":"2026-09-01T23:06:31.009Z","contentChangedAt":null,"schemaVersion":2},"datasetVersion":"2026-09-09T06:17:21.866Z"}