mirror of
https://github.com/fedddddd/iw5-gsc-utils.git
synced 2025-04-20 21:05:44 +00:00
Fix exceptions
This commit is contained in:
parent
dbc0a928b9
commit
288fa38dac
@ -122,7 +122,7 @@ namespace gsc
|
||||
return_value(result);
|
||||
}
|
||||
}
|
||||
catch (std::exception e)
|
||||
catch (const std::exception& e)
|
||||
{
|
||||
printf("************** Script execution error **************\n");
|
||||
printf("Error executing function %s\n", function_name(id).data());
|
||||
@ -148,7 +148,7 @@ namespace gsc
|
||||
return_value(result);
|
||||
}
|
||||
}
|
||||
catch (std::exception e)
|
||||
catch (const std::exception& e)
|
||||
{
|
||||
printf("************** Script execution error **************\n");
|
||||
printf("Error executing method %s\n", method_name(id).data());
|
||||
|
Loading…
x
Reference in New Issue
Block a user