mirror of
https://github.com/aseprite/aseprite.git
synced 2024-12-29 09:23:32 +00:00
Modified ase_exception creation with printf style.
This commit is contained in:
parent
961b2911f5
commit
324435760d
@ -80,7 +80,8 @@ void LoadMaskCommand::execute(Context* context)
|
|||||||
|
|
||||||
Mask *mask = load_msk_file(m_filename.c_str());
|
Mask *mask = load_msk_file(m_filename.c_str());
|
||||||
if (!mask)
|
if (!mask)
|
||||||
throw ase_exception("Error loading .msk file: " + m_filename);
|
throw ase_exception("Error loading .msk file: %s",
|
||||||
|
static_cast<const char*>(m_filename.c_str()));
|
||||||
|
|
||||||
// undo
|
// undo
|
||||||
if (undo_is_enabled(sprite->undo)) {
|
if (undo_is_enabled(sprite->undo)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user