feat: some safety checks
This commit is contained in:
12
main.go
12
main.go
@@ -8,6 +8,18 @@ import (
|
||||
"log/slog"
|
||||
);
|
||||
|
||||
/*
|
||||
If the exit code is X then it means Y:
|
||||
|
||||
| X | Y |
|
||||
|----|------------------------------------------------------------------------------------------|
|
||||
| 0 | Everything should be good, normal exit. |
|
||||
| 1 | Some common error, but that still mean it is going to crash. |
|
||||
| 3 | Ask yourself if you are not using dev version in prod. If not then spam the developer. |
|
||||
| 42 | WHAT THE ACTUAL ***** IS HAPPENING. or assume something is very wrong in the app itself. |
|
||||
| 69 | [INSERT HERE] |
|
||||
*/
|
||||
|
||||
func main() {
|
||||
if(len(os.Args) < 2){
|
||||
panic("Usage: blazena <mode>");
|
||||
|
||||
Reference in New Issue
Block a user