mirror of
https://github.com/aseprite/aseprite.git
synced 2024-12-27 21:19:18 +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());
|
||||
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
|
||||
if (undo_is_enabled(sprite->undo)) {
|
||||
|
Loading…
Reference in New Issue
Block a user