You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: multinodedb.dbx.go
    path of file: ./repos/storj/multinode/multinodedb/dbx
    
    the code of the file until where you have to start completion: //lint:file-ignore U1000,ST1012,SA1019 generated 
    
func makeErr(err error) error {
	if err == nil {
		return nil
	}
	e := &Error{Err: err}
	switch err {
	case sql.ErrNoRows:
		e.Code = ErrorCode_NoRows
	case sql.ErrTxDone:
		e.Code = ErrorCode_TxDone
	}
	return wrapErr(e)
}