MCPcopy Create free account
hub / github.com/clementgallet/libTAS / errorString

Method errorString

src/program/movie/MovieFile.cpp:42–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40}
41
42const char* MovieFile::errorString(int error_code) {
43 static std::string err;
44
45 switch (error_code) {
46 case ENOMOVIE:
47 return "Could not find the movie file";
48 case EBADARCHIVE:
49 err = "The movie file could not be extracted or build: ";
50 err += strerror(errno);
51 return err.c_str();
52 case ENOINPUTS:
53 return "The movie file does not contain the inputs file";
54 case ENOCONFIG:
55 return "The movie file does not contain the config file";
56 default:
57 return "Unknown error";
58 }
59}
60
61void MovieFile::clear()
62{

Callers 2

slotSaveMovieMethod · 0.80
slotExportMovieMethod · 0.80

Calls 1

c_strMethod · 0.45

Tested by

no test coverage detected