Turn the size limit reported in exception into float.
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
5b5df1e494
commit
b8b2291298
|
@ -76,7 +76,7 @@ entry_type parse_formdata()
|
||||||
throw runtime_error{format("The screenshot “{0:s}” is too big. "
|
throw runtime_error{format("The screenshot “{0:s}” is too big. "
|
||||||
"The limit is {1:.1f} MiB.",
|
"The limit is {1:.1f} MiB.",
|
||||||
screenshot.getFilename(),
|
screenshot.getFilename(),
|
||||||
size_limit / 1024 / 1024)};
|
size_limit / 1024.0 / 1024)};
|
||||||
}
|
}
|
||||||
|
|
||||||
const string filepath{files::get_tmpdir() / screenshot.getFilename()};
|
const string filepath{files::get_tmpdir() / screenshot.getFilename()};
|
||||||
|
|
Reference in New Issue