diff options
| author | Miquel Sabaté Solà <mikisabate@gmail.com> | 2024-12-11 12:50:45 +0100 |
|---|---|---|
| committer | Miquel Sabaté Solà <mikisabate@gmail.com> | 2024-12-12 07:57:16 +0100 |
| commit | ac8c477cf69a33bc3640437fd0287b53ca31b111 (patch) | |
| tree | 13269c14fc48bfbbdece19f44f11c2e2c00ab275 | |
| parent | 6300f588bbe82b88fa8b0112a2432c6c63bb2c3f (diff) | |
| download | tools.nes-ac8c477cf69a33bc3640437fd0287b53ca31b111.tar.gz tools.nes-ac8c477cf69a33bc3640437fd0287b53ca31b111.zip | |
Be more informative on segment overflow errors
Signed-off-by: Miquel Sabaté Solà <mikisabate@gmail.com>
| -rw-r--r-- | lib/xixanta/src/assembler.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/xixanta/src/assembler.rs b/lib/xixanta/src/assembler.rs index 989467b..76bf1de 100644 --- a/lib/xixanta/src/assembler.rs +++ b/lib/xixanta/src/assembler.rs @@ -429,8 +429,8 @@ impl Assembler { return Err(EvalError { line: 0, message: format!( - "exceeding segment size for '{}' ({} bytes)", - current.name, current.size + "exceeding segment size for '{}'; expecting {} bytes and {} bytes have already been seen", + current.name, current.size, current.offset, ), global: false, }); |
