mirror of
https://github.com/Open-Argon/argon-v3.git
synced 2025-12-06 08:56:07 +00:00
add functions and variables name
This commit is contained in:
23
src/error.go
Normal file
23
src/error.go
Normal file
@@ -0,0 +1,23 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"os"
|
||||
)
|
||||
|
||||
type ArErr struct {
|
||||
TYPE string
|
||||
message string
|
||||
line int
|
||||
path string
|
||||
code string
|
||||
EXISTS bool
|
||||
}
|
||||
|
||||
func panicErr(err ArErr) {
|
||||
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