mirror of
https://github.com/Open-Argon/argon-v3.git
synced 2025-12-06 08:56:07 +00:00
add create functions
This commit is contained in:
@@ -15,9 +15,11 @@ type ArErr struct {
|
||||
}
|
||||
|
||||
func panicErr(err ArErr) {
|
||||
fmt.Println(" File:", err.path+":"+fmt.Sprint(err.line))
|
||||
fmt.Println(" " + err.code)
|
||||
fmt.Println()
|
||||
if err.code != "" && err.line != 0 && err.path != "" {
|
||||
fmt.Println(" File:", err.path+":"+fmt.Sprint(err.line))
|
||||
fmt.Println(" " + err.code)
|
||||
fmt.Println()
|
||||
}
|
||||
fmt.Println(err.TYPE+":", err.message)
|
||||
os.Exit(1)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user