mirror of
https://github.com/OneUptime/oneuptime
synced 2024-11-21 22:59:07 +00:00
Refactor error handling in main.go for better clarity and instructions
This commit is contained in:
parent
dcc9d4fdf2
commit
0bf8713b60
2
.vscode/launch.json
vendored
2
.vscode/launch.json
vendored
@ -25,7 +25,7 @@
|
||||
"request": "launch",
|
||||
"mode": "debug",
|
||||
"program": "./InfrastructureAgent",
|
||||
"args": ["start"]
|
||||
"args": ["start"],
|
||||
},
|
||||
{
|
||||
"name": "Node.js - Debug Current File",
|
||||
|
@ -136,7 +136,7 @@ func main() {
|
||||
if err != nil {
|
||||
|
||||
slog.Error(err.Error())
|
||||
os.Exit(2)
|
||||
os.Exit(1)
|
||||
}
|
||||
slog.Info("OneUptime Infrastructure Agent Started")
|
||||
|
||||
@ -157,7 +157,7 @@ func main() {
|
||||
err = s.Run()
|
||||
if err != nil {
|
||||
slog.Error(err.Error())
|
||||
os.Exit(2)
|
||||
os.Exit(1)
|
||||
}
|
||||
|
||||
case "uninstall", "stop", "restart":
|
||||
|
Binary file not shown.
Loading…
Reference in New Issue
Block a user