mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2025-12-21 17:56:04 +08:00
Throw right exception.
This commit is contained in:
parent
d641dbc414
commit
92c3fbe946
@ -182,7 +182,7 @@ namespace Spine {
|
|||||||
Attachment attachment = null;
|
Attachment attachment = null;
|
||||||
if (attachmentName != null) {
|
if (attachmentName != null) {
|
||||||
attachment = GetAttachment(i, attachmentName);
|
attachment = GetAttachment(i, attachmentName);
|
||||||
if (attachment == null) throw new ArgumentNullException("Attachment not found: " + attachmentName + ", for slot: " + slotName);
|
if (attachment == null) throw new Exception("Attachment not found: " + attachmentName + ", for slot: " + slotName);
|
||||||
}
|
}
|
||||||
slot.Attachment = attachment;
|
slot.Attachment = attachment;
|
||||||
return;
|
return;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user