improved an error message, see #404

This commit is contained in:
hneemann 2019-12-30 13:01:05 +01:00
parent 113969d1f4
commit e56963dc9e
3 changed files with 3 additions and 1 deletions

View File

@ -49,7 +49,7 @@ public final class CustomShapeDescription implements Iterable<CustomShapeDescrip
Pin getPin(String name) throws PinException {
final Pin pin = pins.get(name);
if (pin == null)
throw new PinException(Lang.get("err_pin_N_notFound", name));
throw new PinException(Lang.get("err_customShapeHasNoPin_N", name));
return pin;
}

View File

@ -925,6 +925,7 @@
<string name="err_clockWithoutName">Es gibt ein Taktelement ohne einen Namen. Wenn ein Taktelement eingebettet wird, benötigt auch dieses eine Bezeichnung.</string>
<string name="err_pin_N0_atElement_N1_notFound">Pin {0} von Element {1} wurde nicht gefunden</string>
<string name="err_pin_N_notFound">Pin {0} wurde nicht gefunden.</string>
<string name="err_customShapeHasNoPin_N">Die importierte SVG Datei definiert keinen Pin {0}</string>
<string name="err_pin_N_unknown">Pin {0} ist unbekannt</string>
<string name="err_seemsToOscillate">Die Schaltung scheint zu oszillieren!
Zur Analyse können Sie die Schaltung im Gatterschrittmodus ausführen.</string>

View File

@ -911,6 +911,7 @@
<string name="err_clockWithoutName">Found a clock without a label. If a clock is embedded also the clock needs a label.</string>
<string name="err_pin_N0_atElement_N1_notFound">Pin {0} not found at component {1}</string>
<string name="err_pin_N_notFound">Pin {0} not found</string>
<string name="err_customShapeHasNoPin_N">The custom shape does not define a pin {0}</string>
<string name="err_pin_N_unknown">Pin {0} unknown</string>
<string name="err_seemsToOscillate">Logic seems to oscillate.
To analyse you can run the circuit in single gate step mode.</string>