Navigation Menu

Skip to content

Commit

Permalink
Merge pull request #44 from TheAngularity/no_event_error
Browse files Browse the repository at this point in the history
Shorter error output if no event log
  • Loading branch information
GaryKeeble committed Dec 31, 2016
2 parents 65c8dd7 + 90d5dfa commit e016acc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions js/flightlog_index.js
Expand Up @@ -193,9 +193,9 @@ function FlightLogIndex(logData) {
// Did we not find any events in this log?
if (intraIndex.minTime === false) {
if (sawEndMarker) {
intraIndex.error = "Logging was paused, no data recorded";
intraIndex.error = "Logging paused, no data";
} else {
intraIndex.error = "Log is truncated, contains no data";
intraIndex.error = "Log truncated, no data";
}
}

Expand Down
2 changes: 1 addition & 1 deletion js/main.js
Expand Up @@ -305,7 +305,7 @@ function BlackboxLogViewer() {
error = flightLog.getLogError(index);

if (error) {
logLabel = "Error: " + error;
logLabel = error;
} else {
logLabel = formatTime(flightLog.getMinTime(index) / 1000, false)
+ " - " + formatTime(flightLog.getMaxTime(index) / 1000 , false)
Expand Down

0 comments on commit e016acc

Please sign in to comment.