Improved assembler

This commit is contained in:
Eduard Urbach 2023-10-23 12:37:20 +02:00
parent d5f752bdd4
commit 8e193c69b6
Signed by: eduard
GPG key ID: 49226B848C78F6C8
22 changed files with 329 additions and 139 deletions

View file

@ -2,6 +2,7 @@ package errors
import "fmt"
// InvalidDirectory errors are returned when the specified path is not a directory.
type InvalidDirectory struct {
Path string
}

View file

@ -0,0 +1,14 @@
package errors
import "fmt"
// RegisterInUse errors are returned when a register is already in use.
type RegisterInUse struct {
Register string
User string
}
// Error implements the text representation.
func (err *RegisterInUse) Error() string {
return fmt.Sprintf("Register '%s' already used by '%s'", err.Register, err.User)
}