package ecode

const (
	ErrPermissionDenied = "ERR_PERMISSION_DENIED"
	ErrConfirmRequired  = "ERR_CONFIRM_REQUIRED"
	ErrFeatureDisabled  = "ERR_FEATURE_DISABLED"
	ErrStepFailed       = "ERR_STEP_FAILED"
	ErrJobCancelled     = "ERR_JOB_CANCELLED"
	ErrStepTimeout      = "ERR_STEP_TIMEOUT"
)

func Tag(code, msg string) string {
	if code == "" {
		return msg
	}
	return "[" + code + "] " + msg
}
