1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-09-16 09:26:28 +02:00

Throwing runtime_errors instead of string (or even char*) objects.

This commit is contained in:
Michał W. Urbańczyk
2012-04-22 07:32:45 +00:00
parent 9c770777fb
commit 017013a5a4
20 changed files with 31 additions and 31 deletions

View File

@@ -68,7 +68,7 @@ namespace SRSLPraserHelpers
case 5: //left
return std::make_pair(x-1, y);
default:
throw std::string("Disaster: wrong direction in SRSLPraserHelpers::gotoDir!\n");
throw std::runtime_error("Disaster: wrong direction in SRSLPraserHelpers::gotoDir!\n");
}
}